]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitccafc6807536b82ab6d9a20727e3f63900749fdd
tree9326524c537a44f47857fefb8d21f244fbcfa2d3
parent1726fdfe55343586a58df1b0187d6830d237c9a6
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