summaryrefslogtreecommitdiffstats
path: root/hw/virtio/virtio-pci.h
diff options
context:
space:
mode:
authorGerd Hoffmann2015-06-04 12:34:35 +0200
committerMichael S. Tsirkin2015-06-10 18:15:06 +0200
commita3cc2e81592aba6d818005c078b94b16ba47a02c (patch)
tree166411e0d8a34f7575a464586fba0db1ed86ad71 /hw/virtio/virtio-pci.h
parentvirtio-pci: add virtio_pci_modern_regions_init() (diff)
downloadqemu-a3cc2e81592aba6d818005c078b94b16ba47a02c.tar.gz
qemu-a3cc2e81592aba6d818005c078b94b16ba47a02c.tar.xz
qemu-a3cc2e81592aba6d818005c078b94b16ba47a02c.zip
virtio-pci: add virtio_pci_modern_region_map()
Add function to map modern virtio regions. Add offset to VirtIOPCIRegion. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio/virtio-pci.h b/hw/virtio/virtio-pci.h
index 8f1fc025d3..f5829b07a5 100644
--- a/hw/virtio/virtio-pci.h
+++ b/hw/virtio/virtio-pci.h
@@ -93,6 +93,7 @@ typedef struct VirtioPCIClass {
typedef struct VirtIOPCIRegion {
MemoryRegion mr;
+ uint32_t offset;
} VirtIOPCIRegion;
struct VirtIOPCIProxy {