Re: [PATCH] KVM: nVMX: consult PFER_MASK and PFER_MATCH before nested vmexit if inject #PF

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

 



On 24/07/2017 15:57, Wanpeng Li wrote:
> 
>      if (!((vmcs12->exception_bitmap & (1u << nr)) ||
> -        (nr == PF_VECTOR && vcpu->arch.exception.nested_apf)))
> +        (nr == PF_VECTOR && (vcpu->arch.exception.nested_apf ||
> +            nested_vmx_is_page_fault_vmexit(vmcs12,
> vcpu->arch.exception.error_code)))))
>          return 0;

No, it would be more like

	if (nr == PF_VECTOR
	    ? (vcpu->arch.exception.nested_apf ||
               nested_vmx_is_page_fault_vmexit(vmcs12, vcpu->arch.exception.error_code))
            : (vmcs12->exception_bitmap & (1u << nr)))

but I've sent an RFC patch that also fixes the exit qualification.

Paolo



[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