Merge branches 'cpuidle', 'fixes' and 'misc' into for-linus
[deliverable/linux.git] / arch / x86 / kvm / vmx.c
index 378a23ab60938b7be5202483208f908d51e57a13..fb93010beaa4df8b61fb4b654d889b1dcaa0990d 100644 (file)
@@ -3105,6 +3105,8 @@ static __init int vmx_disabled_by_bios(void)
 
 static void kvm_cpu_vmxon(u64 addr)
 {
+       intel_pt_handle_vmx(1);
+
        asm volatile (ASM_VMX_VMXON_RAX
                        : : "a"(&addr), "m"(addr)
                        : "memory", "cc");
@@ -3174,6 +3176,8 @@ static void vmclear_local_loaded_vmcss(void)
 static void kvm_cpu_vmxoff(void)
 {
        asm volatile (__ex(ASM_VMX_VMXOFF) : : : "cc");
+
+       intel_pt_handle_vmx(0);
 }
 
 static void hardware_disable(void)
@@ -3388,7 +3392,7 @@ static __init int setup_vmcs_config(struct vmcs_config *vmcs_conf)
                }
        }
 
-       if (cpu_has_xsaves)
+       if (boot_cpu_has(X86_FEATURE_XSAVES))
                rdmsrl(MSR_IA32_XSS, host_xss);
 
        return 0;
This page took 0.027871 seconds and 5 git commands to generate.