lkml.org 
[lkml]   [2015]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRE: [PATCH v7 10/17] KVM: x86: Update IRTE for posted-interrupts
    Date


    > -----Original Message-----
    > From: Alex Williamson [mailto:alex.williamson@redhat.com]
    > Sent: Wednesday, August 26, 2015 3:58 AM
    > To: Wu, Feng
    > Cc: pbonzini@redhat.com; joro@8bytes.org; mtosatti@redhat.com;
    > eric.auger@linaro.org; kvm@vger.kernel.org;
    > iommu@lists.linux-foundation.org; linux-kernel@vger.kernel.org
    > Subject: Re: [PATCH v7 10/17] KVM: x86: Update IRTE for posted-interrupts
    >
    > On Tue, 2015-08-25 at 16:50 +0800, Feng Wu wrote:
    > > This patch adds the routine to update IRTE for posted-interrupts
    > > when guest changes the interrupt configuration.
    > >
    > > Signed-off-by: Feng Wu <feng.wu@intel.com>
    > > ---
    > > arch/x86/kvm/x86.c | 73
    > ++++++++++++++++++++++++++++++++++++++++++++++++++++++
    > > 1 file changed, 73 insertions(+)
    > > + kvm_set_msi_irq(e, &irq);
    > > + if (!kvm_intr_is_single_vcpu(kvm, &irq, &vcpu))
    > > + continue;
    > > +
    > > + vcpu_info.pi_desc_addr = kvm_x86_ops->get_pi_desc_addr(vcpu);
    > > + vcpu_info.vector = irq.vector;
    > > +
    > > + if (set)
    > > + ret = irq_set_vcpu_affinity(host_irq, &vcpu_info);
    > > + else {
    > > + /* suppress notification event before unposting */
    > > + kvm_x86_ops->pi_set_sn(vcpu);
    > > + ret = irq_set_vcpu_affinity(host_irq, NULL);
    > > + kvm_x86_ops->pi_clear_sn(vcpu);
    > > + }
    >
    > Can we add trace events so that we have a way to tell when PI is being
    > enabled/disabled other than performance heuristics? Thanks,

    Sure, I will add it.

    Thanks,
    Feng

    >
    > Alex
    > >
    >

    \
     
     \ /
      Last update: 2015-08-26 03:01    [W:4.251 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site