summaryrefslogtreecommitdiffstats
path: root/hw/virtio/virtio-pci.h
diff options
context:
space:
mode:
authorDavid Hildenbrand2019-06-19 11:49:02 +0200
committerMichael S. Tsirkin2019-07-02 18:59:22 +0200
commit1e33b513f261a24b4340eca5a6f8f5726b92e097 (patch)
tree1c15788609a1bc9f012040826e0e77f037cf81d3 /hw/virtio/virtio-pci.h
parentvirtio-pmem: add virtio device (diff)
downloadqemu-1e33b513f261a24b4340eca5a6f8f5726b92e097.tar.gz
qemu-1e33b513f261a24b4340eca5a6f8f5726b92e097.tar.xz
qemu-1e33b513f261a24b4340eca5a6f8f5726b92e097.zip
virtio-pci: Allow to specify additional interfaces for the base type
Let's allow to specify additional interfaces for the base type (e.g. later TYPE_MEMORY_DEVICE), something that was possible before the rework of virtio PCI device instantiation. Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20190619094907.10131-3-pagupta@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 bfea2892a5..619d9098c1 100644
--- a/hw/virtio/virtio-pci.h
+++ b/hw/virtio/virtio-pci.h
@@ -252,6 +252,7 @@ typedef struct VirtioPCIDeviceTypeInfo {
size_t class_size;
void (*instance_init)(Object *obj);
void (*class_init)(ObjectClass *klass, void *data);
+ InterfaceInfo *interfaces;
} VirtioPCIDeviceTypeInfo;
/* Register virtio-pci type(s). @t must be static. */