diff options
author | Ladi Prosek <lprosek@redhat.com> | 2017-03-31 04:19:26 -0400 |
---|---|---|
committer | Radim Krčmář <rkrcmar@redhat.com> | 2017-04-04 10:11:06 -0400 |
commit | ab007cc94ff9d82f5a8db8363b3becbd946e58cf (patch) | |
tree | 8a090b38f4911a71ff89986cdf513c2dd94aad41 | |
parent | 34fcf05b1557f1f8d6801d9dde30ac1d13213ba3 (diff) |
KVM: nVMX: do not leak PML full vmexit to L1
The PML feature is not exposed to guests so we should not be forwarding
the vmexit either.
This commit fixes BSOD 0x20001 (HYPERVISOR_ERROR) when running Hyper-V
enabled Windows Server 2016 in L1 on hardware that supports PML.
Fixes: 843e4330573c ("KVM: VMX: Add PML support in VMX")
Signed-off-by: Ladi Prosek <lprosek@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
-rw-r--r-- | arch/x86/kvm/vmx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 2ee00dbbbd51..605183291069 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -8198,6 +8198,9 @@ static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu) | |||
8198 | return nested_cpu_has2(vmcs12, SECONDARY_EXEC_XSAVES); | 8198 | return nested_cpu_has2(vmcs12, SECONDARY_EXEC_XSAVES); |
8199 | case EXIT_REASON_PREEMPTION_TIMER: | 8199 | case EXIT_REASON_PREEMPTION_TIMER: |
8200 | return false; | 8200 | return false; |
8201 | case EXIT_REASON_PML_FULL: | ||
8202 | /* We don't expose PML support to L1. */ | ||
8203 | return false; | ||
8201 | default: | 8204 | default: |
8202 | return true; | 8205 | return true; |
8203 | } | 8206 | } |