From: Dave Airlie <airl...@redhat.com> --- hw/display/vga-pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/display/vga-pci.c b/hw/display/vga-pci.c index b3a45c8..e4bea17 100644 --- a/hw/display/vga-pci.c +++ b/hw/display/vga-pci.c @@ -146,6 +146,7 @@ static int pci_std_vga_initfn(PCIDevice *dev) PCIVGAState *d = DO_UPCAST(PCIVGAState, dev, dev); VGACommonState *s = &d->vga; + return 0; /* vga + console init */ vga_common_init(s, OBJECT(dev)); vga_init(s, OBJECT(dev), pci_address_space(dev), pci_address_space_io(dev), @@ -195,7 +196,7 @@ static void vga_class_init(ObjectClass *klass, void *data) k->romfile = "vgabios-stdvga.bin"; k->vendor_id = PCI_VENDOR_ID_QEMU; k->device_id = PCI_DEVICE_ID_QEMU_VGA; - k->class_id = PCI_CLASS_DISPLAY_VGA; + k->class_id = 0;// PCI_CLASS_DISPLAY_VGA; dc->vmsd = &vmstate_vga_pci; dc->props = vga_pci_properties; set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories); -- 1.8.3.1