ppc/spapr: Allow VIRTIO_VGA
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 15 Sep 2015 05:51:29 +0000 (15:51 +1000)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 20 Oct 2015 07:26:36 +0000 (09:26 +0200)
It works fine with the Linux driver out of the box

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
default-configs/ppc64-softmmu.mak
hw/ppc/spapr.c

index e77cb1ac54c1e98ab5608efa1823afd3ab5735f2..bb71b23ee78a3a35c6327b1aaea42760f2fdf6d2 100644 (file)
@@ -3,6 +3,7 @@
 include pci.mak
 include sound.mak
 include usb.mak
+CONFIG_VIRTIO_VGA=y
 CONFIG_ISA_MMIO=y
 CONFIG_ESCC=y
 CONFIG_M48T59=y
index d1b0e53668294ddd8065eb356ae830b1b3e09c03..3852ad1967644e08d32e6a9066ccb26fa2f33c02 100644 (file)
@@ -1169,6 +1169,7 @@ static int spapr_vga_init(PCIBus *pci_bus)
     case VGA_DEVICE:
         return true;
     case VGA_STD:
+    case VGA_VIRTIO:
         return pci_vga_init(pci_bus) != NULL;
     default:
         fprintf(stderr, "This vga model is not supported,"