On 30/11/20 20:14, Sean Christopherson wrote:
+ WARN_ON(!irqs_disabled());
+ max_irr = vmx_sync_pir_to_irr(vcpu);
if (!is_guest_mode(vcpu))
vmx_set_rvi(max_irr);
+ else if (max_irr == vmx->nested.posted_intr_nv) {
+ ...
+ }
}
and in vmx_vcpu_run:
+ if (kvm_lapic_enabled(vcpu) && vcpu->arch.apicv_active)
+ vmx_hwapic_irr_update(vcpu);
And also drop the direct call to vmx_sync_pir_to_irr() in the fastpath exit.
If you agree, feel free to send this (without the else of course) as a
separate cleanup patch immediately.
Without what "else"?
This one:
+ else if (max_irr == vmx->nested.posted_intr_nv) {
+ ...
Paolo