virtio-gpu-pci: tag as not hotpluggable
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 8 Sep 2016 07:17:17 +0000 (09:17 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 13 Sep 2016 07:26:58 +0000 (09:26 +0200)
We can't hotplug display adapters in qemu, tag virtio-gpu-pci
accordingly (virtio-vga already has this).

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 1473319037-27645-1-git-send-email-kraxel@redhat.com

hw/display/virtio-gpu-pci.c

index 34a724c7545ace70e3a37bab368f6fd72b938657..ef92c4ad6ff93cbe0f43e6c297eb658aaff7028d 100644 (file)
@@ -48,6 +48,7 @@ static void virtio_gpu_pci_class_init(ObjectClass *klass, void *data)
 
     set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
     dc->props = virtio_gpu_pci_properties;
+    dc->hotpluggable = false;
     k->realize = virtio_gpu_pci_realize;
     pcidev_k->class_id = PCI_CLASS_DISPLAY_OTHER;
 }