vhost: relax used address alignment
authorMichael S. Tsirkin <mst@redhat.com>
Sat, 20 Dec 2014 23:00:23 +0000 (01:00 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Dec 2014 08:55:06 +0000 (10:55 +0200)
commit5d9a07b0de512b77bf28d2401e5fe3351f00a240
tree1157d5803702f242d4b35268644ee48e20719307
parentb28e0506fafd9c987bba7a6a71ea02a37fcabdea
vhost: relax used address alignment

virtio 1.0 only requires used address to be 4 byte aligned,
vhost required 8 bytes (size of vring_used_elem).
Fix up vhost to match that.

Additionally, while vhost correctly requires 8 byte
alignment for log, it's unconnected to used ring:
it's a consequence that log has u64 entries.
Tweak code to make that clearer.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c