vdpa_sim: fix endian-ness of config space
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 12 Jul 2020 14:57:02 +0000 (10:57 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 15:08:40 +0000 (11:08 -0400)
commit5d7d0f387ae1b933ff9771dc921f5e2f65271df9
tree9326524c537a44f47857fefb8d21f244fbcfa2d3
parent639916734754b20fc34d956515a67b6a05776534
vdpa_sim: fix endian-ness of config space

VDPA sim accesses config space as native endian - this is
wrong since it's a modern device and actually uses LE.

It only supports modern guests so we could punt and
just force LE, but let's use the full virtio APIs since people
tend to copy/paste code, and this is not data path anyway.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa_sim/vdpa_sim.c