Re: [PATCH v7 08/46] virtio: memory access APIs

2014-12-01 Thread Cornelia Huck
On Sun, 30 Nov 2014 17:09:50 +0200 "Michael S. Tsirkin" wrote: > virtio 1.0 makes all memory structures LE, so > we need APIs to conditionally do a byteswap on BE > architectures. > > To make it easier to check code statically, > add virtio specific types for multi-byte integers > in memory. >

[PATCH v7 08/46] virtio: memory access APIs

2014-11-30 Thread Michael S. Tsirkin
virtio 1.0 makes all memory structures LE, so we need APIs to conditionally do a byteswap on BE architectures. To make it easier to check code statically, add virtio specific types for multi-byte integers in memory. Add low level wrappers that do a byteswap conditionally, these will be useful e.g