summaryrefslogtreecommitdiffstats
path: root/hw/adc/trace-events
diff options
context:
space:
mode:
authorStefan Hajnoczi2021-02-23 15:46:42 +0100
committerKevin Wolf2021-03-08 14:55:19 +0100
commit535255b43898d2e96744057eb86f8497d4d7a461 (patch)
tree2355bda304118f907a8d00768b7b386bc43bd2e2 /hw/adc/trace-events
parentdocs: replace insecure /tmp examples in qsd docs (diff)
downloadqemu-535255b43898d2e96744057eb86f8497d4d7a461.tar.gz
qemu-535255b43898d2e96744057eb86f8497d4d7a461.tar.xz
qemu-535255b43898d2e96744057eb86f8497d4d7a461.zip
vhost-user-blk: fix blkcfg->num_queues endianness
Treat the num_queues field as virtio-endian. On big-endian hosts the vhost-user-blk num_queues field was in the wrong endianness. Move the blkcfg.num_queues store operation from realize to vhost_user_blk_update_config() so feature negotiation has finished and we know the endianness of the device. VIRTIO 1.0 devices are little-endian, but in case someone wants to use legacy VIRTIO we support all endianness cases. Cc: qemu-stable@nongnu.org Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <20210223144653.811468-2-stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/adc/trace-events')
0 files changed, 0 insertions, 0 deletions