vhost: add memory access wrappers
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 24 Oct 2014 08:48:17 +0000 (11:48 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Dec 2014 10:05:29 +0000 (12:05 +0200)
commite05fd12b388b1356f753ca54445551cb1de03386
treefbadbc906df4d1ac4d16c1ae18247213ffb029ba
parentbd82752a831bc3c7a66b59572f82e06154f19e27
vhost: add memory access wrappers

Add guest memory access wrappers to handle virtio endianness
conversions.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
drivers/vhost/vhost.h