vhost-user: fix legacy cross-endian configurations
commit5df04f1762ef78c08fd69e19dcedf3d9ba8c9b86
authorFelipe Franciosi <felipe@nutanix.com>
Wed, 14 Jun 2017 17:44:38 +0000 (14 18:44 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 1 Aug 2017 21:13:25 +0000 (2 00:13 +0300)
treeeeb55bb6c1f81c111cdf0d521fc91adb1daf4887
parent08b9e0ba623c4468fe94026a9bdd086526ef62f0
vhost-user: fix legacy cross-endian configurations

Currently, vhost-user does not implement any means for notifying the
backend about guest endianess. This commit introduces a new message
called VHOST_USER_SET_VRING_ENDIAN which is analogous to the ioctl()
called VHOST_SET_VRING_ENDIAN used for kernel vhost backends. Such
message is necessary for backends supporting legacy (pre-1.0) virtio
devices running in big-endian guests.

Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
Signed-off-by: Mike Cui <cui@nutanix.com>
docs/interop/vhost-user.txt
hw/virtio/vhost-user.c