From: Alex Williamson <alex.williamson@redhat.com>
To: Krishna J <krishnamurthyjs@outlook.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: [Qemu-devel] [RFC PATCH 0/4] MSI affinity for assigned devices
Date: Mon, 07 Jan 2013 13:52:01 -0700 [thread overview]
Message-ID: <1357591921.11324.149.camel@ul30vt.home> (raw)
In-Reply-To: <DUB002-W107A033A11B2888AD211F1CAE250@phx.gbl>
On Mon, 2013-01-07 at 20:14 +0000, Krishna J wrote:
> Hi Alex,
> > MSI routing updates aren't currently handled by pci-assign or
> > vfio-pci (when using KVM acceleration), which means that trying to
> > set interrupt SMP affinity in the guest has no effect unless MSI is
> > completely disabled and re-enabled. This series fixes this for both
> > device assignment backends using similar schemes. We store the last
> > MSIMessage programmed to KVM and do updates to the MSI route when it
> > changes. pci-assign takes a little bit of refactoring to make this
> > happen cleanly. Thanks,
>
> I am using the MSI affinity for assigned devices patch 1 to 4. I have
> setup the guest such that VCPU0 is pinned to PCPU1, VCPU1 is pinned to
> PCPU2, VCPU2 is pinned to PCPU3 and VCPU3 is pinned to PCPU4. I do
> this by taskset after the guest boots. I then start generating
> interrupts affined to VCPU3. I see all the interrupts directly
> delivered to VCPU 3. Now i do the same test but interrupt affined to
> VCPU 2. Although the interrupts are delivered to VCPU2 there are lot
> of "Rescheduling interrupts" in VCPU 3. I have checked the
> smp_affinity and it is updated to VCPU 2.
> Wanted to know your feedback on this usecase and what might be the
> impact.
> CPU0 CPU1 CPU2 CPU3
> 0: 211 0 0 0 IO-APIC-edge timer
> 4: 60940 0 0 0 IO-APIC-edge serial
> 8: 65 0 0 0 IO-APIC-edge rtc0
> 9: 0 0 0 0 IO-APIC-fasteoi acpi
> 40: 0 0 0 0 PCI-MSI-edge virtio1-config
> 41: 1910 0 0 0 PCI-MSI-edge virtio1-requests
> 42: 0 0 0 0 PCI-MSI-edge virtio0-config
> 43: 127 0 0 0 PCI-MSI-edge virtio0-input
> 44: 1 0 0 0 PCI-MSI-edge virtio0-output
> 45: 1 0 3377 11194 PCI-MSI-edge FPGA_DEV
> NMI: 0 0 0 0 Non-maskable interrupts
> LOC: 225880 231572 223670 223612 Local timer interrupts
> SPU: 0 0 0 0 Spurious interrupts
> PMI: 0 0 0 0 Performance monitoring interrupts
> IWI: 0 0 0 0 IRQ work interrupts
> RTR: 0 0 0 0 APIC ICR read retries
> RES: 14 20 21 3398 Rescheduling interrupts-------> Many RES Interrtups!!!!!!
> CAL: 0 14 14 16 Function call interrupts
> TLB: 0 0 0 0 TLB shootdowns
I don't know, but I'll fix the line wrap for anyone else that wants to
have a look. The count looks roughly similar to the number of
interrupts to VCPU2. Is your application somehow tied to VCPU3?
Thanks,
Alex
next prev parent reply other threads:[~2013-01-07 20:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-27 22:00 [Qemu-devel] [RFC PATCH 0/4] MSI affinity for assigned devices Alex Williamson
2012-11-27 22:00 ` [Qemu-devel] [RFC PATCH 1/4] kvm: Stub kvm_irqchip_update_msi_route Alex Williamson
2012-11-27 22:00 ` [Qemu-devel] [RFC PATCH 2/4] vfio-pci: Add support for MSI affinity Alex Williamson
2012-11-27 22:00 ` [Qemu-devel] [RFC PATCH 3/4] pci-assign: Refactor MSI virq array Alex Williamson
2012-11-27 22:01 ` [Qemu-devel] [RFC PATCH 4/4] pci-assign: Add MSI affinity support Alex Williamson
2012-11-27 23:08 ` [Qemu-devel] [RFC PATCH 0/4] MSI affinity for assigned devices Jan Kiszka
2012-11-27 23:21 ` Alex Williamson
2012-11-29 6:57 ` Jan Kiszka
2012-11-28 16:32 ` [Qemu-devel] PCI device pass through support Krishna J
2012-11-28 17:00 ` Alex Williamson
2013-01-07 20:14 ` [Qemu-devel] [RFC PATCH 0/4] MSI affinity for assigned devices Krishna J
2013-01-07 20:52 ` Alex Williamson [this message]
2013-01-07 21:22 ` Krishna J
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1357591921.11324.149.camel@ul30vt.home \
--to=alex.williamson@redhat.com \
--cc=krishnamurthyjs@outlook.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).