virtio-pci: switch to modern accessors for 1.0
commit54c720d49d3f9741b52ac95c65a5cc990254a5d8
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 4 Jun 2015 10:34:25 +0000 (4 12:34 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 10 Jun 2015 16:15:05 +0000 (10 18:15 +0200)
tree28f6d773e89196c89363161c628fe862f20bee1b
parentadfb743c90c7aa5e92907ce875e4f35747ee1963
virtio-pci: switch to modern accessors for 1.0

virtio 1.0 config space is in LE format for all
devices, use modern wrappers when accessed through
the 1.0 BAR.

Reported-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-pci.c