aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorLadi Prosek <lprosek@redhat.com>2017-03-31 04:19:26 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-14 08:00:18 -0400
commitd0ee36354f7749ff6034d78c28b6fc2e20c3d968 (patch)
treec126d6888f8f0f15abdf7efc34764a511f25c77d /arch/x86
parent560a979735f49f0ba2fa28117acdfb861f05cd97 (diff)
KVM: nVMX: do not leak PML full vmexit to L1
commit ab007cc94ff9d82f5a8db8363b3becbd946e58cf upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/vmx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 0ffec8a8074f..89b98e07211f 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -8135,6 +8135,9 @@ static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu)
8135 return nested_cpu_has2(vmcs12, SECONDARY_EXEC_XSAVES); 8135 return nested_cpu_has2(vmcs12, SECONDARY_EXEC_XSAVES);
8136 case EXIT_REASON_PREEMPTION_TIMER: 8136 case EXIT_REASON_PREEMPTION_TIMER:
8137 return false; 8137 return false;
8138 case EXIT_REASON_PML_FULL:
8139 /* We don't expose PML support to L1. */
8140 return false;
8138 default: 8141 default:
8139 return true; 8142 return true;
8140 } 8143 }