OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

virtio message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [virtio-dev] Re: [virtio] [PATCH v7 01/11] content: move 1.0 queue format out to a separate section


On Tue, Feb 06, 2018 at 12:10:20PM +0100, Halil Pasic wrote:
> I agree with what Connie proposed (drop 'used by legacy virtio devices').
> My point is that this legacy can lead to confusion.

It's a good point.
I guess it's better to just go the regular route and add a
separate section
explaining that legacy devices always use a split ring.

> Regarding no versioning in virtio: I agree only partially. We have
> the VIRTIO_F_VERSION_1 feature bit and we have a version number in
> the title. But I think, I understand what you mean. This non-egsistence
> of versioning in virtio is probably trivial for anybody working on
> virtio for years. But is it for a new hire who just got trough the spec?

It's not easy to write a spec that is both formally correct and
easy to read. It might be a good idea to extend the introduction
some more and explain how does virtio handle compatibility
without versioning.

> In the CIO transport we have an explicit mention of virtio 1.0 (explains
> revision 1). I wonder if that is still appropriate. Shouldn't that just
> be virtio 1?

Some transports chose to have their own transport versioning.

> >>>  The split virtqueue format separates the
> >>> +virtqueue into several parts, where each part is write-able by
> >>> +either the driver or the device, but not both. Multiple
> >>> +locations need to be updated when making a buffer available
> >>> +and when marking it as used.
> >>> +
> >>
> >> If we assume 3 parts (available ring, used ring and descriptor table),
> >> then the two last sentences are contradictory: as one of three would have
> >> to be updated by both the device and the driver. Or did I misunderstand
> >> something?
> > 
> > I don't see a contradiction.
> > Split rings only have RO and WO parts. There are 
> > 
> 
> This sentence seems unfinished. I was probably wrong. I assumed 'location'
> means 'area' in this context. What does location mean in this context
> (e.g. same location is equivalent to same byte)?

Yes, that's what I meant. Maybe "Multiple parts and/or locations within
a part"?


> >> I think, the purpose of this paragraph is to distinguish the split
> >> form the packed. We probably don't need these additions to understand
> >> 'split'. I would rather see a discussion on the two formats in the
> >> common (2.4) virtqueue section.
> >>
> >> [..]
> >>
> >> Regards,
> >> Halil
> > 
> > This doesn't really scale - if we have a 3rd format we do not
> > want to mix them all in a common section.
> > So description of split format goes into split section, and so on.
> > I'd be fine to add a format comparison section if that will
> > make things easier.
> 
> OK. I need to think about the structure a bit more myself. Let's
> just go with what we have.
> 
> Thanks for your answers!
> 
> Regards,
> Halil


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]