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

 


Help: OASIS Mailing Lists Help | MarkMail Help

virtio-dev message

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


Subject: Correct way to specify virtio_foo_config structures?


Hi,

what is the correct way for a VIRTIO_F_VERSION_1 modern device to specify the
virtio_foo_config structure. Should I make it __attribute__((packed))? What field
types should be used. Everything __virtio{16,32} or better __le{16,32}? Can we
have __u8 and do they have to 16-bit or 32-bit aligned.

When looking at the various examples, I see multiple combinations. What is the
prefered virtio_cread accessor method to be used. For example the virtio_cread_le
states something like âmodernâ in his comment. So the preference is to specify
the virtio_foo_config in little-endian?

Any insights are appreciated.

Regards

Marcel



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