mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
hw/virtio: Add VirtioPCIDeviceTypeInfo::instance_finalize field
The VirtioPCIDeviceTypeInfo structure, added in commita4ee4c8baa
("virtio: Helper for registering virtio device types") got extended in commit8ea90ee690
("virtio: add class_size") with the @class_size field. Do similarly with the @instance_finalize field. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20231121174051.63038-2-philmd@linaro.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
8729856c19
commit
837053a7f4
2 changed files with 2 additions and 0 deletions
|
@ -2391,6 +2391,7 @@ void virtio_pci_types_register(const VirtioPCIDeviceTypeInfo *t)
|
|||
.parent = t->parent ? t->parent : TYPE_VIRTIO_PCI,
|
||||
.instance_size = t->instance_size,
|
||||
.instance_init = t->instance_init,
|
||||
.instance_finalize = t->instance_finalize,
|
||||
.class_size = t->class_size,
|
||||
.abstract = true,
|
||||
.interfaces = t->interfaces,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue