summaryrefslogtreecommitdiffstats
path: root/hw/virtio/virtio-pci.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin2015-07-02 14:59:49 +0200
committerMichael S. Tsirkin2015-07-08 09:09:57 +0200
commitada434cd0b44ce984318621e4bb79e067360d737 (patch)
tree5708872cdd02f146cef080503fc962c9a9ce789a /hw/virtio/virtio-pci.h
parentvirtio: define virtio_pci_cfg_cap in header. (diff)
downloadqemu-ada434cd0b44ce984318621e4bb79e067360d737.tar.gz
qemu-ada434cd0b44ce984318621e4bb79e067360d737.tar.xz
qemu-ada434cd0b44ce984318621e4bb79e067360d737.zip
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/virtio/virtio-pci.h b/hw/virtio/virtio-pci.h
index 05d9d243f6..b6c442f522 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;