]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
KVM: nVMX: do not leak PML full vmexit to L1
authorLadi Prosek <lprosek@redhat.com>
Fri, 31 Mar 2017 08:19:26 +0000 (10:19 +0200)
committerRadim Krčmář <rkrcmar@redhat.com>
Tue, 4 Apr 2017 14:11:06 +0000 (16:11 +0200)
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>
arch/x86/kvm/vmx.c

index 2ee00dbbbd5188ccd51324085d51b0de679666bb..6051832910698f6aa403b93b21f4ac82c8409aaf 100644 (file)
@@ -8198,6 +8198,9 @@ static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu)
                return nested_cpu_has2(vmcs12, SECONDARY_EXEC_XSAVES);
        case EXIT_REASON_PREEMPTION_TIMER:
                return false;
+       case EXIT_REASON_PML_FULL:
+               /* We don't expose PML support to L1. */
+               return false;
        default:
                return true;
        }