Re: [PATCH v4 5/7] KVM: VMX: Optimize posted-interrupt delivery for timer fastpath

From: Paolo Bonzini
Date: Thu Apr 30 2020 - 09:32:25 EST


On 28/04/20 08:23, Wanpeng Li wrote:
> - if (exit_fastpath == EXIT_FASTPATH_REENTER_GUEST &&
> - kvm_vcpu_exit_request(vcpu))
> - exit_fastpath = EXIT_FASTPATH_NOP;
> + if (exit_fastpath == EXIT_FASTPATH_REENTER_GUEST) {
> + if (!kvm_vcpu_exit_request(vcpu))
> + vmx_sync_pir_to_irr(vcpu);
> + else
> + exit_fastpath = EXIT_FASTPATH_NOP;
> + }

This part should be in patch 3; not a big deal, I can reorganize that
myself.

Paolo