diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2015-07-02 14:59:49 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-07-08 10:09:57 +0300 |
commit | ada434cd0b44ce984318621e4bb79e067360d737 (patch) | |
tree | 5708872cdd02f146cef080503fc962c9a9ce789a /hw/virtio/virtio-pci.h | |
parent | c36f24a2045d7a002b767ce023acfd9be63df692 (diff) | |
download | qemu-ada434cd0b44ce984318621e4bb79e067360d737.zip qemu-ada434cd0b44ce984318621e4bb79e067360d737.tar.gz qemu-ada434cd0b44ce984318621e4bb79e067360d737.tar.bz2 |
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>
Diffstat (limited to 'hw/virtio/virtio-pci.h')
-rw-r--r-- | hw/virtio/virtio-pci.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/virtio/virtio-pci.h b/hw/virtio/virtio-pci.h index 05d9d24..b6c442f 100644 --- a/hw/virtio/virtio-pci.h +++ b/hw/virtio/virtio-pci.h @@ -112,9 +112,12 @@ struct VirtIOPCIProxy { VirtIOPCIRegion device; VirtIOPCIRegion notify; MemoryRegion modern_bar; + MemoryRegion modern_cfg; + AddressSpace modern_as; uint32_t legacy_io_bar; uint32_t msix_bar; uint32_t modern_mem_bar; + int config_cap; uint32_t flags; uint32_t class_code; uint32_t nvectors; |