Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab007cc9 authored by Ladi Prosek's avatar Ladi Prosek Committed by Radim Krčmář
Browse files

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: 843e4330 ("KVM: VMX: Add PML support in VMX")
Signed-off-by: default avatarLadi Prosek <lprosek@redhat.com>
Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
parent 34fcf05b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
	}