From: Pawel Moll <pawel.moll@arm.com>
To: Rusty Russell <rusty@rustcorp.com.au>
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: Mon, 12 Sep 2011 17:45:56 +0100 [thread overview]
Message-ID: <1315845956.3297.7.camel@hornet.cambridge.arm.com> (raw)
In-Reply-To: <877h5e5yxp.fsf@rustcorp.com.au>
On Mon, 2011-09-12 at 11:01 +0930, Rusty Russell wrote:
> Cool work! I like the concept, but a few implementation notes below:
Glad to hear that it makes any sense :-)
I'll post the RFC v2 in a second - it's a platform bus driver now, so
it's not ARM specific any more...
> > + * offset width name description
> > + * ------ ----- ------------- -----------------
> > + *
> > + * 0x000 32 HostFeatures Features supported by the host
> > + * 0x004 32 GuestFeatures Features activated by the guest
>
> 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);
<...>
}
> > + * 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?)
> 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!
Cheers!
Paweł
next prev parent reply other threads:[~2011-09-12 16:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-02 12:24 [RFC 0/2] Memory mapped " 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 [this message]
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 ` [RFC 1/2] virtio: Add AMBA " Rusty Russell
2011-09-13 9:40 ` 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=1315845956.3297.7.camel@hornet.cambridge.arm.com \
--to=pawel.moll@arm.com \
--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=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®