diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2014-10-22 15:35:56 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-12-09 12:05:24 +0200 |
commit | eef960a04354d13426c43a4e3750a5e2b383040c (patch) | |
tree | a5d6e327dbb22c85b2f6592077a544bcc0153471 /include/uapi/linux/Kbuild | |
parent | 4ec22faeb2a165b6ce7009f91309046010b3f282 (diff) | |
download | op-kernel-dev-eef960a04354d13426c43a4e3750a5e2b383040c.zip op-kernel-dev-eef960a04354d13426c43a4e3750a5e2b383040c.tar.gz |
virtio: memory access APIs
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. for vhost. Add high level wrappers that
query device endian-ness and act accordingly.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'include/uapi/linux/Kbuild')
-rw-r--r-- | include/uapi/linux/Kbuild | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild index 8523f9b..615f96a 100644 --- a/include/uapi/linux/Kbuild +++ b/include/uapi/linux/Kbuild @@ -423,6 +423,7 @@ header-y += virtio_blk.h header-y += virtio_config.h header-y += virtio_console.h header-y += virtio_ids.h +header-y += virtio_types.h header-y += virtio_net.h header-y += virtio_pci.h header-y += virtio_ring.h |