block/export: make vhost-user-blk config space little-endian
commit11f60f7eaee2630dd6fa0c3a8c49f792e46c4cf1
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 27 Oct 2020 17:35:19 +0000 (27 17:35 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 3 Nov 2020 21:39:05 +0000 (3 16:39 -0500)
tree1921ca5271919df715e9dc9d77bde620aea124d6
parentbc15e44cb2191bbb2318878acdf5038134e56394
block/export: make vhost-user-blk config space little-endian

VIRTIO 1.0 devices have little-endian configuration space. The
vhost-user-blk-server.c code already uses little-endian for virtqueue
processing but not for the configuration space fields. Fix this so the
vhost-user-blk export works on big-endian hosts.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20201027173528.213464-4-stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
block/export/vhost-user-blk-server.c