All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>,
	virtualization@lists.linux-foundation.org,
	Anthony Liguori <anthony@codemonkey.ws>,
	kvm@vger.kernel.org, avi@redhat.com
Subject: Re: [PATCH RFC 0/8] virtio: add guest MSI-X support
Date: Mon, 27 Apr 2009 20:17:24 +0300	[thread overview]
Message-ID: <20090427171724.GB2276@redhat.com> (raw)
In-Reply-To: <200904271737.25546.borntraeger@de.ibm.com>

On Mon, Apr 27, 2009 at 05:37:25PM +0200, Christian Borntraeger wrote:
> > As  number of virtqueues <= number of vectors,
> > we could pre-allocate all vectors that host supports, but this seems
> > a bit drastic as an MSI-X device could support up to 2K vectors.
> > 
> > > In fact, the transport has to have a way of getting the number of virtqeues
> > > because find_vq returns ENOENT on invalid index numbers.
> > > 
> > > Christian
> > 
> > So again, I think this is an upper bound supported by host. Right?
> 
> Not the upper bound, but the real available virtqueues. (With current qemu
> 3 for virtio-net, 2 for virtio-console etc.)

Here's what I mean by upper bound: guest and host number of
virtqueues might be different: the host might support
control virtqueue like in virtio-net, but guest might be an older
version and not use it.

> Since I use a different transport (drivers/s390/kvm/kvm_virtio.c), my
> motiviation is to keep the virtio interface as generic as possible. I
> dont really like the new interface, but I cannot give you silver
> bullet technical reasons - its more a gut feeling. The interface would
> work with lguest and s390.
> 
> Anyway. Avis suggestion to decouple MSI count and virtqueue count looks
> like a promising approach. 

So generally, we add request_vectors which gives us the number of
available MSI vectors and then find_vq gets a vector #?
Does this sound better?

-- 
MST

  reply	other threads:[~2009-04-27 17:20 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-27 12:31 [PATCH RFC 0/8] virtio: add guest MSI-X support Michael S. Tsirkin
2009-04-27 14:00 ` Christian Borntraeger
2009-04-27 14:00 ` Christian Borntraeger
2009-04-27 14:32   ` Michael S. Tsirkin
2009-04-27 15:37     ` Christian Borntraeger
2009-04-27 15:37     ` Christian Borntraeger
2009-04-27 17:17       ` Michael S. Tsirkin [this message]
2009-04-27 17:17       ` Michael S. Tsirkin
2009-04-27 14:32   ` Michael S. Tsirkin
2009-04-27 15:06   ` Avi Kivity
2009-04-27 15:39     ` Michael S. Tsirkin
2009-04-27 16:59       ` Christian Borntraeger
2009-04-27 17:19         ` Michael S. Tsirkin
2009-04-27 17:19         ` Michael S. Tsirkin
2009-04-27 16:59       ` Christian Borntraeger
2009-04-28  6:47       ` Avi Kivity
2009-04-28 17:41         ` Michael S. Tsirkin
2009-04-28 17:41         ` Michael S. Tsirkin
2009-04-28 17:51           ` Avi Kivity
2009-04-28 17:51           ` Avi Kivity
2009-04-28 18:02             ` Michael S. Tsirkin
2009-04-28 18:02             ` Michael S. Tsirkin
2009-04-28 19:56               ` Anthony Liguori
2009-04-28 21:01                 ` Michael S. Tsirkin
2009-04-28 19:56               ` Anthony Liguori
2009-05-04  9:21               ` Avi Kivity
2009-05-04  9:21               ` Avi Kivity
2009-05-04 11:54                 ` Michael S. Tsirkin
2009-05-04 11:57                   ` Avi Kivity
2009-05-04 11:57                   ` Avi Kivity
2009-05-04 11:54                 ` Michael S. Tsirkin
2009-04-28  6:47       ` Avi Kivity
2009-04-27 15:39     ` Michael S. Tsirkin
2009-04-27 14:39 ` Anthony Liguori
2009-04-27 17:42   ` Michael S. Tsirkin
2009-04-27 17:42   ` Michael S. Tsirkin
2009-04-27 14:39 ` Anthony Liguori
  -- strict thread matches above, loose matches on Subject: below --
2009-04-27 12:31 Michael S. Tsirkin

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=20090427171724.GB2276@redhat.com \
    --to=mst@redhat.com \
    --cc=anthony@codemonkey.ws \
    --cc=avi@redhat.com \
    --cc=borntraeger@de.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=virtualization@lists.linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.