Skip to content
Commit 5d9a07b0 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

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: default avatarMichael S. Tsirkin <mst@redhat.com>
parent b28e0506
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment