virtio-pci: implement cfg capability
commitada434cd0b44ce984318621e4bb79e067360d737
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 2 Jul 2015 12:59:49 +0000 (2 14:59 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 8 Jul 2015 07:09:57 +0000 (8 10:09 +0300)
tree5708872cdd02f146cef080503fc962c9a9ce789a
parentc36f24a2045d7a002b767ce023acfd9be63df692
virtio-pci: implement cfg capability

spec says we must, so let's do it!

Note: the implementation is incorrect for BE targets.
Will fix with a patch on top, not a big deal now as
the only user is seabios, used on x86 only.

Tested-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-pci.c
hw/virtio/virtio-pci.h