summaryrefslogtreecommitdiffstats
path: root/hw/virtio/virtio-pci.h
diff options
context:
space:
mode:
authorGerd Hoffmann2015-06-04 12:34:33 +0200
committerMichael S. Tsirkin2015-06-10 18:15:06 +0200
commit588255ad5021f06789f438f7b045015c54e30841 (patch)
tree7636ff9d9530f34873829460a944f3381d1f50d2 /hw/virtio/virtio-pci.h
parentvirtio-balloon: switch to virtio_add_feature (diff)
downloadqemu-588255ad5021f06789f438f7b045015c54e30841.tar.gz
qemu-588255ad5021f06789f438f7b045015c54e30841.tar.xz
qemu-588255ad5021f06789f438f7b045015c54e30841.zip
virtio-pci: add struct VirtIOPCIRegion for virtio-1 regions
For now just place the MemoryRegion there, following patches will add more. 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.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/hw/virtio/virtio-pci.h b/hw/virtio/virtio-pci.h
index 4e9b2dbdac..8f1fc025d3 100644
--- a/hw/virtio/virtio-pci.h
+++ b/hw/virtio/virtio-pci.h
@@ -91,13 +91,17 @@ typedef struct VirtioPCIClass {
void (*realize)(VirtIOPCIProxy *vpci_dev, Error **errp);
} VirtioPCIClass;
+typedef struct VirtIOPCIRegion {
+ MemoryRegion mr;
+} VirtIOPCIRegion;
+
struct VirtIOPCIProxy {
PCIDevice pci_dev;
MemoryRegion bar;
- MemoryRegion common;
- MemoryRegion isr;
- MemoryRegion device;
- MemoryRegion notify;
+ VirtIOPCIRegion common;
+ VirtIOPCIRegion isr;
+ VirtIOPCIRegion device;
+ VirtIOPCIRegion notify;
MemoryRegion modern_bar;
uint32_t flags;
uint32_t class_code;