Re: [PATCH] KVM: nVMX: do not leak PML full vmexit to L1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2017-03-31 10:19+0200, Ladi Prosek:
> 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@xxxxxxxxxx>
> ---

Good catch,

Reviewed-by: Radim Krčmář <rkrcmar@xxxxxxxxxx>

>  arch/x86/kvm/vmx.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
> index 2ee00db..6051832 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)
>  		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;
>  	}
> -- 
> 2.9.3
> 



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux