On Tue, Feb 27, 2018 at 09:49:28AM +0800, Tiwei Bie wrote:
> struct {
> __le16 desc_event_off : 15,
> desc_event_wrap : 1;
> __le16 desc_event_flags : 2;
> };
I decided on this format in the end. Thanks for the suggestion!
--
MST
Bitfields are a useful and familiar way to specify sub-byte structure
layout. The only issue is that bitfield order isn't portable across
architectures. Document that we list bitfields from least to
most significant one, and warn about portability issues.
Signed-off-by: Michael S. Tsirkin
On Wed, Feb 28, 2018 at 08:25:01PM +0100, Jiri Pirko wrote:
> Wed, Feb 28, 2018 at 04:45:39PM CET, m...@redhat.com wrote:
> >On Wed, Feb 28, 2018 at 04:11:31PM +0100, Jiri Pirko wrote:
> >> Wed, Feb 28, 2018 at 03:32:44PM CET, m...@redhat.com wrote:
> >> >On Wed, Feb 28, 2018 at 08:08:39AM +0100,
On Wed, Feb 28, 2018 at 2:59 PM, Alex Williamson
wrote:
> On Wed, 28 Feb 2018 09:49:21 -0800
> Alexander Duyck wrote:
>
>> On Tue, Feb 27, 2018 at 2:25 PM, Alexander Duyck
>> wrote:
>> > On Tue, Feb 27, 2018 at
On Tue, Feb 27, 2018 at 06:03:01PM +0100, Halil Pasic wrote:
>
>
> On 02/27/2018 03:11 PM, Michael S. Tsirkin wrote:
> >> [..]
> > +
> > +\devicenormative{\subsection}{The Virtqueue Descriptor Table}{Basic
> > Facilities of a Virtio Device / Packed Virtqueues / The Virtqueue
>
On Wed, Feb 28, 2018 at 02:59:51PM +0100, Halil Pasic wrote:
>
>
> On 02/28/2018 02:42 PM, Jens Freimann wrote:
> > On Tue, Feb 27, 2018 at 12:29:11PM +0100, Halil Pasic wrote:
> >>
> >>
> >> On 02/27/2018 11:23 AM, Jens Freimann wrote:
> >>> On Mon, Feb 26, 2018 at 11:05:14PM +0200, Michael S.
On Tue, Feb 27, 2018 at 12:29:11PM +0100, Halil Pasic wrote:
>
>
> On 02/27/2018 11:23 AM, Jens Freimann wrote:
> > On Mon, Feb 26, 2018 at 11:05:14PM +0200, Michael S. Tsirkin wrote:
> >> On Mon, Feb 26, 2018 at 06:19:21PM +0100, Halil Pasic wrote:
> >>> > +
Performance analysis of this is in my kvm forum 2016 presentation. The
idea is to have a r/w descriptor in a ring structure, replacing the used
and available ring, index and descriptor buffer.
This is also easier for devices to implement than the 1.0 layout.
Several more enhancements will be
Bitfields are a useful and familiar way to specify sub-byte structure
layout. The only issue is that bitfield order isn't portable across
architectures. Document that we list bitfields from least to
most significant one, and warn about portability issues.
Signed-off-by: Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin
Reviewed-by: Cornelia Huck
---
content.tex | 14 ++
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/content.tex b/content.tex
index 9fc9673..5634c7d 100644
--- a/content.tex
+++ b/content.tex
@@
For a split ring, require that drivers use descriptors in order too.
This allows devices to skip reading the available ring.
Signed-off-by: Michael S. Tsirkin
Reviewed-by: Cornelia Huck
Reviewed-by: Stefan Hajnoczi
---
split-ring.tex |
virtqueue operation description is specific to the virtqueue
format. Move it out to split-ring.tex and update all
references.
Signed-off-by: Michael S. Tsirkin
Reviewed-by: Cornelia Huck
---
conformance.tex | 4 +-
content.tex | 171
This addresses comments on v8.
Thanks a lot to all reviewers of v8 - I hope we are
finally there or almost there.
A compiled version can
be found under https://github.com/oasis-tcs/virtio-docs.git
virtio-v1.1-packed-wd09-diff.pdf virtio-v1.1-packed-wd09.pdf
for redline and clean versions,
Signed-off-by: Michael S. Tsirkin
Reviewed-by: Cornelia Huck
---
content.tex | 25 -
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/content.tex b/content.tex
index c7ef7fd..4483a4b 100644
--- a/content.tex
+++
Document buffer used len and use that terminology everywhere in the
generic section.
Further, drop the 'used ring' terminology and just say virtqueue.
Reviewed-by: Cornelia Huck
Signed-off-by: Michael S. Tsirkin
---
content.tex | 39
Motivation for the new feature is included in the text.
Signed-off-by: Michael S. Tsirkin
---
content.tex | 141 ---
introduction.tex | 4 +-
notifications.c | 3 ++
3 files changed, 140 insertions(+), 8 deletions(-)
Will be easier to manage this way.
Signed-off-by: Michael S. Tsirkin
Reviewed-by: Cornelia Huck
---
content.tex| 499 +
split-ring.tex | 498
Replace descriptor table/available ring/used ring
with descriptor area/driver area/device area
in all transports.
Document what's in which area.
Signed-off-by: Michael S. Tsirkin
Reviewed-by: Cornelia Huck
---
content.tex| 61
Down the road, when we are close to releasing
v1.1 we will want to show diff from cs04. But for now,
it's handy to generate the diff from master,
this way each new feature is redlined separately.
Signed-off-by: Michael S. Tsirkin
---
makediff.sh | 3 +--
1 file changed, 1
Update generic text to talk about available/used buffers, not rings.
Move some split-ring specific text to the correct section.
Update conformance section with link to the new conformance clause.
Signed-off-by: Michael S. Tsirkin
---
conformance.tex | 1 +
content.tex |
Support in-order requests for packed rings.
This allows selective write-out of used descriptors.
Signed-off-by: Michael S. Tsirkin
Reviewed-by: Cornelia Huck
Reviewed-by: Stefan Hajnoczi
---
packed-ring.tex | 24
---
split-ring.tex | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/split-ring.tex b/split-ring.tex
index a594d41..87ecee2 100644
--- a/split-ring.tex
+++ b/split-ring.tex
@@ -23,7 +23,7 @@ Each virtqueue consists of three parts:
where each part is physically-contiguous in
Using descriptors in-order is sometimes beneficial. Add an option for
that - per-format detail allowing more optimizations will be added by
follow-up patches.
Signed-off-by: Michael S. Tsirkin
Reviewed-by: Cornelia Huck
Reviewed-by: Stefan Hajnoczi
On Wed, Feb 28, 2018 at 08:08:39AM +0100, Jiri Pirko wrote:
> Tue, Feb 27, 2018 at 10:41:49PM CET, kubak...@wp.pl wrote:
> >On Tue, 27 Feb 2018 13:16:21 -0800, Alexander Duyck wrote:
> >> Basically we need some sort of PCI or PCIe topology mapping for the
> >> devices that can be translated into
On Tue, Feb 27, 2018 at 12:29:11PM +0100, Halil Pasic wrote:
On 02/27/2018 11:23 AM, Jens Freimann wrote:
On Mon, Feb 26, 2018 at 11:05:14PM +0200, Michael S. Tsirkin wrote:
On Mon, Feb 26, 2018 at 06:19:21PM +0100, Halil Pasic wrote:
> +?? vq->driver_event.flags
On Tue, Feb 27, 2018 at 06:03:01PM +0100, Halil Pasic wrote:
On 02/27/2018 03:11 PM, Michael S. Tsirkin wrote:
[..]
+
+\devicenormative{\subsection}{The Virtqueue Descriptor Table}{Basic Facilities
of a Virtio Device / Packed Virtqueues / The Virtqueue Descriptor Table}
+A device MUST NOT
On 02/28/2018 02:42 PM, Jens Freimann wrote:
> On Tue, Feb 27, 2018 at 12:29:11PM +0100, Halil Pasic wrote:
>>
>>
>> On 02/27/2018 11:23 AM, Jens Freimann wrote:
>>> On Mon, Feb 26, 2018 at 11:05:14PM +0200, Michael S. Tsirkin wrote:
On Mon, Feb 26, 2018 at 06:19:21PM +0100, Halil Pasic
On Tue, 13 Feb 2018 17:27:39 +0100
Cornelia Huck wrote:
> On Tue, 13 Feb 2018 13:44:06 +0100
> Halil Pasic wrote:
>
> > v1->v2:
> > * fixed ungrammatical commit title for #1
> > * added r-b's
> > * added bug tracker references
> >
> > Halil Pasic
On Wed, Feb 28, 2018 at 02:59:51PM +0100, Halil Pasic wrote:
>
>
> On 02/28/2018 02:42 PM, Jens Freimann wrote:
> > On Tue, Feb 27, 2018 at 12:29:11PM +0100, Halil Pasic wrote:
> >>
> >>
> >> On 02/27/2018 11:23 AM, Jens Freimann wrote:
> >>> On Mon, Feb 26, 2018 at 11:05:14PM +0200, Michael S.
On Tue, 27 Feb 2018 21:56:04 +0200
"Michael S. Tsirkin" wrote:
> On Wed, Feb 21, 2018 at 06:44:17PM +0100, Tomáš Golembiovský wrote:
> > On Wed, 21 Feb 2018 11:33:28 +
> > Stefan Hajnoczi wrote:
> >
> > > On Wed, Feb 21, 2018 at 12:11:35AM +0100,
On Tue, Feb 27, 2018 at 10:17:17PM +0200, Michael S. Tsirkin wrote:
> On Tue, Feb 27, 2018 at 09:49:28AM +0800, Tiwei Bie wrote:
> > On Mon, Feb 26, 2018 at 10:38:13PM +0200, Michael S. Tsirkin wrote:
> > > On Mon, Feb 26, 2018 at 06:51:11PM +0800, Tiwei Bie wrote:
> > > > On Sun, Feb 25, 2018 at
On 02/28/2018 04:56 PM, Cornelia Huck wrote:
> On Tue, 13 Feb 2018 17:27:39 +0100
> Cornelia Huck wrote:
>
>> On Tue, 13 Feb 2018 13:44:06 +0100
>> Halil Pasic wrote:
>>
>>> v1->v2:
>>> * fixed ungrammatical commit title for #1
>>> * added r-b's
On 02/28/2018 04:40 PM, Michael S. Tsirkin wrote:
> On Wed, Feb 28, 2018 at 02:59:51PM +0100, Halil Pasic wrote:
>>
>>
>> On 02/28/2018 02:42 PM, Jens Freimann wrote:
>>> On Tue, Feb 27, 2018 at 12:29:11PM +0100, Halil Pasic wrote:
On 02/27/2018 11:23 AM, Jens Freimann wrote:
On Wed, 28 Feb 2018 17:20:29 +0200
"Michael S. Tsirkin" wrote:
> I agree. I think I will stop using the bitfields - they seem to
> cause too much confusion. Just
>
> struct event {
> __le16 event_desc; /* bits 0-14: desc_off. 15 - desc_wrap. */
> __le16
On Tue, Feb 27, 2018 at 2:25 PM, Alexander Duyck
wrote:
> On Tue, Feb 27, 2018 at 1:40 PM, Alex Williamson
> wrote:
>> On Tue, 27 Feb 2018 11:06:54 -0800
>> Alexander Duyck wrote:
>>
>>> From: Alexander Duyck
35 matches
Mail list logo