lkml.org 
[lkml]   [2019]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v3 06/16] kvm: x86: svm: Add support to activate/deactivate posted interrupts
From
Date
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

\
 
 \ /
  Last update: 2019-10-09 10:25    [W:0.092 / U:61.088 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site