diff options
author | Michael S. Tsirkin | 2015-07-02 14:59:49 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2015-07-08 09:09:57 +0200 |
commit | ada434cd0b44ce984318621e4bb79e067360d737 (patch) | |
tree | 5708872cdd02f146cef080503fc962c9a9ce789a /hw/virtio/virtio-pci.h | |
parent | virtio: define virtio_pci_cfg_cap in header. (diff) | |
download | qemu-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.h | 3 |
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; |