Skip to contentSkip to conversation

virtio-gpu-pci: tag as not hotpluggable

PATCH In review Gerd Hoffmann 3 participants 4 messages Sep 8, 2016 – Sep 12, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-gpu-pci: tag as not hotpluggable

We can't hotplug display adapters in qemu, tag virtio-gpu-pci accordingly (virtio-vga already has this).

---
 hw/display/virtio-gpu-pci.c | 1 +
 1 file changed, 1 insertion(+)
hw/display/virtio-gpu-pci.c +1 -0
index 34a724c..ef92c4a 100644
@@ -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;
 }
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Gerd Hoffmann

We can't hotplug display adapters in qemu, tag virtio-gpu-pci accordingly (virtio-vga already has this).

---

Quoted 20 lines
 hw/display/virtio-gpu-pci.c | 1 +
 1 file changed, 1 insertion(+)
hw/display/virtio-gpu-pci.c +1 -0
index 34a724c..ef92c4a 100644
@@ -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;

}
--
1.8.3.1

Quoted 1 line

--

Marc-André Lureau

Acked-by on v1 1/1
#2 lore raw
In reply to Gerd Hoffmann
Quoted 4 lines · Gerd Hoffmann

We can't hotplug display adapters in qemu, tag virtio-gpu-pci accordingly (virtio-vga already has this).

I assume you merged this?

Quoted 18 lines
---
 hw/display/virtio-gpu-pci.c | 1 +
 1 file changed, 1 insertion(+)
hw/display/virtio-gpu-pci.c +1 -0
index 34a724c..ef92c4a 100644
@@ -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;
 }
Signature · 1 line
1.8.3.1