Re: [PATCH v3 5/5] KVM: nVMX: Optimization: Dont set KVM_REQ_EVENT when VMExit with nested_run_pending

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

 



On Thu, Mar 22, 2018 at 5:01 PM, Liran Alon <liran.alon@xxxxxxxxxx> wrote:
> When vCPU runs L2 and there is a pending event that requires to exit
> from L2 to L1 and nested_run_pending=1, vcpu_enter_guest() will request
> an immediate-exit from L2 (See req_immediate_exit).
>
> Since now handling of req_immediate_exit also makes sure to set
> KVM_REQ_EVENT, there is no need to also set it on vmx_vcpu_run() when
> nested_run_pending=1.
>
> This optimizes cases where VMRESUME was executed by L1 to enter L2 and
> there is no pending events that require exit from L2 to L1. Previously,
> this would have set KVM_REQ_EVENT unnecessarly.
>
> Signed-off-by: Liran Alon <liran.alon@xxxxxxxxxx>
> Reviewed-by: Nikita Leshenko <nikita.leshchenko@xxxxxxxxxx>
> Reviewed-by: Krish Sadhukhan <krish.sadhukhan@xxxxxxxxxx>
> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>

Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>



[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