vga: set catagory bit for secondary vga device
authorGonglei <arei.gonglei@huawei.com>
Fri, 5 Dec 2014 03:33:37 +0000 (11:33 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 16 Dec 2014 14:14:42 +0000 (15:14 +0100)
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/vga-pci.c

index db922f1..53739e4 100644 (file)
@@ -321,6 +321,7 @@ static void secondary_class_init(ObjectClass *klass, void *data)
     dc->vmsd = &vmstate_vga_pci;
     dc->props = secondary_pci_properties;
     dc->reset = pci_secondary_vga_reset;
+    set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
 }
 
 static const TypeInfo vga_info = {