diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2013-02-23 16:34:39 -0500 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-02-27 08:33:51 -0500 |
commit | d6851fbeee3f79ac2629f823e15ac2a7f6f54e0e (patch) | |
tree | eb7daab2db0001c7d892fa7c5e07aade55d5c751 /arch/x86/kvm/vmx.c | |
parent | 733568f9cecc061eca213ba0e877a1f820a40de5 (diff) |
KVM: nVMX: Advertise PAUSE and WBINVD exiting support
These exits have no preconditions, and we already process the
corresponding reasons in nested_vmx_exit_handled correctly.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 8a99a62d98a6..329836af3240 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -2080,6 +2080,7 @@ static __init void nested_vmx_setup_ctls_msrs(void) | |||
2080 | CPU_BASED_MOV_DR_EXITING | CPU_BASED_UNCOND_IO_EXITING | | 2080 | CPU_BASED_MOV_DR_EXITING | CPU_BASED_UNCOND_IO_EXITING | |
2081 | CPU_BASED_USE_IO_BITMAPS | CPU_BASED_MONITOR_EXITING | | 2081 | CPU_BASED_USE_IO_BITMAPS | CPU_BASED_MONITOR_EXITING | |
2082 | CPU_BASED_RDPMC_EXITING | CPU_BASED_RDTSC_EXITING | | 2082 | CPU_BASED_RDPMC_EXITING | CPU_BASED_RDTSC_EXITING | |
2083 | CPU_BASED_PAUSE_EXITING | | ||
2083 | CPU_BASED_ACTIVATE_SECONDARY_CONTROLS; | 2084 | CPU_BASED_ACTIVATE_SECONDARY_CONTROLS; |
2084 | /* | 2085 | /* |
2085 | * We can allow some features even when not supported by the | 2086 | * We can allow some features even when not supported by the |
@@ -2094,7 +2095,8 @@ static __init void nested_vmx_setup_ctls_msrs(void) | |||
2094 | nested_vmx_secondary_ctls_low, nested_vmx_secondary_ctls_high); | 2095 | nested_vmx_secondary_ctls_low, nested_vmx_secondary_ctls_high); |
2095 | nested_vmx_secondary_ctls_low = 0; | 2096 | nested_vmx_secondary_ctls_low = 0; |
2096 | nested_vmx_secondary_ctls_high &= | 2097 | nested_vmx_secondary_ctls_high &= |
2097 | SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES; | 2098 | SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES | |
2099 | SECONDARY_EXEC_WBINVD_EXITING; | ||
2098 | } | 2100 | } |
2099 | 2101 | ||
2100 | static inline bool vmx_control_verify(u32 control, u32 low, u32 high) | 2102 | static inline bool vmx_control_verify(u32 control, u32 low, u32 high) |