Skip to contentSkip to conversation

hw/display/virtio-gpu: Put the virtio-gpu-device into the display category

PATCH Applied Thomas Huth 2 participants 2 messages Sep 15, 2017 – Sep 24, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/display/virtio-gpu: Put the virtio-gpu-device into the display category

The virtio-gpu-pci device is already in the display category, so the virtio-gpu-device should be there, too.

---
 hw/display/virtio-gpu.c | 1 +
 1 file changed, 1 insertion(+)
hw/display/virtio-gpu.c +1 -0
index f0761cf..cc9385d 100644
@@ -1279,6 +1279,7 @@ static void virtio_gpu_class_init(ObjectClass *klass, void *data)
 
     vdc->reset = virtio_gpu_reset;
 
+    set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
     dc->props = virtio_gpu_properties;
     dc->vmsd = &vmstate_virtio_gpu;
     dc->hotpluggable = false;
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 2 lines · Thomas Huth

The virtio-gpu-pci device is already in the display category, so the virtio-gpu-device should be there, too.

Applied to -trivial, thanks!

/mjt