From: Rusty Russell <rusty@rustcorp.com.au>
To: Pawel Moll <pawel.moll@arm.com>
Cc: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Anthony Liguori <aliguori@us.ibm.com>,
virtualization <virtualization@lists.linux-foundation.org>,
"Michael S.Tsirkin" <mst@redhat.com>,
Magnus Damm <magnus.damm@gmail.com>
Subject: Re: [RFC 1/2] virtio: Add AMBA bus driver for virtio device
Date: Tue, 13 Sep 2011 12:28:26 +0930 [thread overview]
Message-ID: <87hb4h408d.fsf@rustcorp.com.au> (raw)
In-Reply-To: <1315845956.3297.7.camel@hornet.cambridge.arm.com>
On Mon, 12 Sep 2011 17:45:56 +0100, Pawel Moll <pawel.moll@arm.com> wrote:
> On Mon, 2011-09-12 at 11:01 +0930, Rusty Russell wrote:
> > You need to make these at least 64 bits. Lguest makes them variable
> > width, in fact.
>
> No problem, I've reserved 128 bits in the modified registers layout (see
> RFC v2), I can even change it into "offset/value" interface, which would
> give you variable width. One thing I don't get is how to access feature
> bits > 31? The get_features() seems
> to be limited to 32:
>
> struct virtio_config_ops {
> <...>
> u32 (*get_features)(struct virtio_device *vdev);
> <...>
> }
There's a patch for that already :)
> > > + * 0x008 32 QueuePFN PFN for the currently selected queue
> > > + * 0x00c 32 QueueNum Queue size for the currently selected queue
> >
> > You should, I believe, seriously consider allowing the guest to set the
> > queue size, rather than the host (perhaps the host could suggest one,
> > but the guest should be able to override it).
>
> I guess the QueueNum could be simply a read/write register - guest can
> read suggestion and override it writing it back. The same question
> though - how can guest change it? (I mean some API?)
We can sort that out later... the Guest may try some ambitious large
allocation and fall back if it fails.
> > Anthony or Michael might suggest other changes, since they are most
> > familiar with virtio_pci limitations...
>
> I've added them on the RFC v2 Cc as well - all feedback more then
> welcome!
Excellent... of course, the virtualization list is down at the moment,
making this a bit more awkward.
Cheers,
Rusty.
next prev parent reply other threads:[~2011-09-13 5:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-02 12:24 [RFC 0/2] Memory mapped virtio device Pawel Moll
2011-09-02 12:24 ` [RFC 1/2] virtio: Add AMBA bus driver for " Pawel Moll
[not found] ` <877h5e5yxp.fsf@rustcorp.com.au>
2011-09-12 16:45 ` Pawel Moll
2011-09-12 16:51 ` [RFC v2] arm: Add platform " Pawel Moll
2011-09-12 17:27 ` Anthony Liguori
2011-09-13 8:58 ` Pawel Moll
2011-09-13 2:58 ` Rusty Russell [this message]
2011-09-13 9:40 ` [RFC 1/2] virtio: Add AMBA " Pawel Moll
2011-09-14 0:18 ` Rusty Russell
2011-09-14 16:47 ` Pawel Moll
2011-09-02 12:24 ` [RFC 2/2] ARM: Add VIRTUALIZATION configuration menu and virtio options Pawel Moll
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=87hb4h408d.fsf@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=aliguori@us.ibm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=mst@redhat.com \
--cc=pawel.moll@arm.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox