From: Gleb Natapov <gleb@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: kvm@vger.kernel.org, avi@redhat.com
Subject: Re: [RFC PATCH 0/2] irq destination caching prototype
Date: Mon, 13 Aug 2012 12:48:01 +0300 [thread overview]
Message-ID: <20120813094801.GQ3341@redhat.com> (raw)
In-Reply-To: <20120813094609.GM14081@redhat.com>
On Mon, Aug 13, 2012 at 12:46:09PM +0300, Michael S. Tsirkin wrote:
> On Mon, Aug 13, 2012 at 12:36:27PM +0300, Gleb Natapov wrote:
> > On Mon, Aug 13, 2012 at 12:34:32PM +0300, Michael S. Tsirkin wrote:
> > > On Mon, Aug 13, 2012 at 12:16:46PM +0300, Gleb Natapov wrote:
> > > > Here is a quick prototype of what we discussed yesterday. This one
> > > > caches only MSI interrupts for now. The obvious problem is that not
> > > > all interrupts (namely IPIs and MSIs using KVM_CAP_SIGNAL_MSI) use irq
> > > > routing table, so they cannot be cached.
> > >
> > > I thought this means ID changes need to replace the routing table, no?
> > >
> > Correct. This is missing from the patches, but as I said this is just
> > prototype to see if it is feasible.
> > What this prototype shows is that we
> > have problems with IPIs and MSIs from userspace.
>
>
> I think it's a worthwhile optimization all the same. When you feel it's
> ready, I'm willing to test to see if it helps vhost.
>
>
You can test it now. It passes my very simple testing. Guests usually do
not change apic ids after HW initialization. Maximum it will fail and
you'll tell me how bad it failed :)
> > > >
> > > > Gleb Natapov (2):
> > > > Call irq_rt callback under rcu_read_lock()
> > > > Cache msi irq destination.
> > > >
> > > > arch/x86/kvm/lapic.c | 2 +-
> > > > include/linux/kvm_host.h | 1 +
> > > > virt/kvm/ioapic.c | 2 +-
> > > > virt/kvm/ioapic.h | 3 ++-
> > > > virt/kvm/irq_comm.c | 37 ++++++++++++++++++++-----------------
> > > > 5 files changed, 25 insertions(+), 20 deletions(-)
> > > >
> > > > --
> > > > 1.7.10.4
> >
> > --
> > Gleb.
--
Gleb.
next prev parent reply other threads:[~2012-08-13 9:48 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-13 9:16 [RFC PATCH 0/2] irq destination caching prototype Gleb Natapov
2012-08-13 9:16 ` [RFC PATCH 1/2] Call irq_rt callback under rcu_read_lock() Gleb Natapov
2012-08-13 9:16 ` [RFC PATCH 2/2] Cache msi irq destination Gleb Natapov
2012-08-13 9:32 ` Avi Kivity
2012-08-13 9:34 ` Gleb Natapov
2012-08-13 9:34 ` [RFC PATCH 0/2] irq destination caching prototype Michael S. Tsirkin
2012-08-13 9:36 ` Gleb Natapov
2012-08-13 9:46 ` Michael S. Tsirkin
2012-08-13 9:48 ` Gleb Natapov [this message]
2012-08-13 9:36 ` Avi Kivity
2012-08-13 10:12 ` Michael S. Tsirkin
2012-08-13 10:16 ` Gleb Natapov
2012-08-13 10:21 ` Avi Kivity
2012-08-13 10:24 ` Gleb Natapov
2012-08-13 10:31 ` Avi Kivity
2012-08-13 10:35 ` Gleb Natapov
2012-08-13 10:38 ` Michael S. Tsirkin
2012-08-13 10:58 ` Avi Kivity
2012-08-13 11:01 ` Gleb Natapov
2012-08-13 11:03 ` Avi Kivity
2012-08-13 11:12 ` Gleb Natapov
2012-08-13 11:22 ` Michael S. Tsirkin
2012-08-13 11:29 ` Gleb Natapov
2012-08-13 11:43 ` Gleb Natapov
2012-08-13 12:14 ` Avi Kivity
2012-08-13 11:30 ` Avi Kivity
2012-08-13 11:41 ` Gleb Natapov
2012-08-13 12:13 ` Avi Kivity
2012-08-13 12:59 ` Michael S. Tsirkin
2012-08-13 11:19 ` Michael S. Tsirkin
2012-08-13 9:43 ` Avi Kivity
2012-08-13 9:51 ` Michael S. Tsirkin
2012-08-13 9:53 ` Gleb Natapov
2012-08-13 10:33 ` Gleb Natapov
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=20120813094801.GQ3341@redhat.com \
--to=gleb@redhat.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mst@redhat.com \
/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).