--- zzzz-none-000/linux-3.10.107/arch/x86/include/asm/virtext.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/x86/include/asm/virtext.h 2021-02-04 17:41:59.000000000 +0000 @@ -19,6 +19,7 @@ #include #include +#include /* * VMX functions: @@ -40,12 +41,12 @@ static inline void cpu_vmxoff(void) { asm volatile (ASM_VMX_VMXOFF : : : "cc"); - write_cr4(read_cr4() & ~X86_CR4_VMXE); + cr4_clear_bits(X86_CR4_VMXE); } static inline int cpu_vmx_enabled(void) { - return read_cr4() & X86_CR4_VMXE; + return __read_cr4() & X86_CR4_VMXE; } /** Disable VMX if it is enabled on the current CPU