On 13/09/19 21:00, Suthikulpanit, Suravee wrote: > +++ b/arch/x86/kvm/x86.c > @@ -7198,6 +7198,9 @@ void kvm_vcpu_activate_apicv(struct kvm_vcpu *vcpu) > kvm_apic_update_apicv(vcpu); > > kvm_x86_ops->refresh_apicv_exec_ctrl(vcpu); > + > + if (kvm_x86_ops->activate_pi_irte) > + kvm_x86_ops->activate_pi_irte(vcpu); > } > EXPORT_SYMBOL_GPL(kvm_vcpu_activate_apicv); > > @@ -7212,6 +7215,8 @@ void kvm_vcpu_deactivate_apicv(struct kvm_vcpu *vcpu) > > vcpu->arch.apicv_active = false; > kvm_apic_update_apicv(vcpu); > + if (kvm_x86_ops->deactivate_pi_irte) > + kvm_x86_ops->deactivate_pi_irte(vcpu); > kvm_x86_ops->refresh_apicv_exec_ctrl(vcpu); > } > EXPORT_SYMBOL_GPL(kvm_vcpu_deactivate_apicv); This can be done in refresh_apicv_exec_ctrl. Paolo