mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
5f503cd9f3
commit
1e33b513f2
2 changed files with 2 additions and 0 deletions
|
@ -1947,6 +1947,7 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
|
|||
.class_init = virtio_pci_base_class_init,
|
||||
.class_data = (void *)t,
|
||||
.abstract = true,
|
||||
.interfaces = t->interfaces,
|
||||
};
|
||||
TypeInfo generic_type_info = {
|
||||
.name = t->generic_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue