kvm: qemu: fix endianness for virtio-blk config space
commitbcf469b658cffa90824fe8e521064a11547df6fe
authorAnthony Liguori <aliguori@us.ibm.com>
Tue, 1 Apr 2008 16:04:56 +0000 (1 11:04 -0500)
committerAvi Kivity <avi@qumranet.com>
Wed, 2 Apr 2008 06:52:39 +0000 (2 09:52 +0300)
treeb98c6babbd0493e0c3fe40c68173c93abd612959
parentcfba72f0093694df0028cd51639d9e5c4b7b8e2c
kvm: qemu: fix endianness for virtio-blk config space

The virtio config space is little endian.  Make sure that in virtio-blk we
store the values in little endian format.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Acked-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
qemu/hw/virtio-blk.c