summary refs log tree commit diff stats
path: root/hw/virtio/virtio-pci.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-03-07 09:02:42 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-03-11 08:04:12 +0100
commit8ea90ee690eb78bbe6644cae3a7eff857f8b4569 (patch)
treeb321637b3e8ddd145a364a15d3a6a4f0373c15d8 /hw/virtio/virtio-pci.c
parente2a18635a400b0e68679614132e9ef6316105590 (diff)
downloadfocaccia-qemu-8ea90ee690eb78bbe6644cae3a7eff857f8b4569.tar.gz
focaccia-qemu-8ea90ee690eb78bbe6644cae3a7eff857f8b4569.zip
virtio: add class_size to VirtioPCIDeviceTypeInfo
Needed when VirtioPCIClass subclasses have their own
class struct with some extra fields.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 20190307080244.9011-2-kraxel@redhat.com
Diffstat (limited to 'hw/virtio/virtio-pci.c')
-rw-r--r--hw/virtio/virtio-pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c
index e978bfe760..cb44e19b67 100644
--- a/hw/virtio/virtio-pci.c
+++ b/hw/virtio/virtio-pci.c
@@ -1935,6 +1935,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,
+        .class_size    = t->class_size,
         .class_init    = virtio_pci_base_class_init,
         .class_data    = (void *)t,
         .abstract      = true,