summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLadi Prosek <lprosek@redhat.com>2017-03-31 10:19:26 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-14 13:32:56 +0200
commit1be497a1d022d5a37717076bd8566c141ecb8388 (patch)
treeac6e8361c036dea00e50ed1e726c0b061aae2b8c /arch
parentb97d19ce68f2ea3b39d310b3f1f136b7eb3c2e61 (diff)
downloadlinux-stable-1be497a1d022d5a37717076bd8566c141ecb8388.tar.gz
linux-stable-1be497a1d022d5a37717076bd8566c141ecb8388.tar.bz2
linux-stable-1be497a1d022d5a37717076bd8566c141ecb8388.zip
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')
-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 f55bc40b1eba..50ca8f409a7c 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -7838,6 +7838,9 @@ static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu)
return nested_cpu_has2(vmcs12, SECONDARY_EXEC_XSAVES);
case EXIT_REASON_PCOMMIT:
return nested_cpu_has2(vmcs12, SECONDARY_EXEC_PCOMMIT);
+ case EXIT_REASON_PML_FULL:
+ /* We don't expose PML support to L1. */
+ return false;
default:
return true;
}