]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
hw/display/virtio-gpu: Put the virtio-gpu-device into the display category
authorThomas Huth <thuth@redhat.com>
Fri, 15 Sep 2017 08:46:21 +0000 (10:46 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 26 Sep 2017 06:11:22 +0000 (09:11 +0300)
The virtio-gpu-pci device is already in the display category, so the
virtio-gpu-device should be there, too.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/display/virtio-gpu.c

index 3a8f1e1a2d27d2130a1dd6c60f6eab9e9a3ce273..6b5f119d96860740fd62b7997b9e85ea42cfda5b 100644 (file)
@@ -1321,6 +1321,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;