aboutsummaryrefslogtreecommitdiff
path: root/hw/display/vga-pci.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-09-10 14:25:45 +0200
committerGerd Hoffmann <kraxel@redhat.com>2015-06-12 10:13:23 +0200
commitc5d4dac86b61070c078a7b35e25f56d2c8bff508 (patch)
tree357ba92ffe1b7fca73485c4fe2a63720d321e38a /hw/display/vga-pci.c
parent9eafb62d47ac1c8c2d431e1b4829445444ccc2ee (diff)
downloadqemu-c5d4dac86b61070c078a7b35e25f56d2c8bff508.zip
qemu-c5d4dac86b61070c078a7b35e25f56d2c8bff508.tar.gz
qemu-c5d4dac86b61070c078a7b35e25f56d2c8bff508.tar.bz2
virtio-vga: add virtio gpu device with vga compatibility
This patch adds a virtio-vga device. It is simliar to virtio-gpu-pci, but it also adds in vga compatibility, so guests without native virtio-gpu support can drive the device in vga mode. It is compatible with stdvga. Written by Dave Airlie and Gerd Hoffmann. Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/vga-pci.c')
-rw-r--r--hw/display/vga-pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/display/vga-pci.c b/hw/display/vga-pci.c
index 0ed44c7..1dfa331 100644
--- a/hw/display/vga-pci.c
+++ b/hw/display/vga-pci.c
@@ -204,10 +204,10 @@ static const MemoryRegionOps pci_vga_qext_ops = {
.endianness = DEVICE_LITTLE_ENDIAN,
};
-static void pci_std_vga_mmio_region_init(VGACommonState *s,
- MemoryRegion *parent,
- MemoryRegion *subs,
- bool qext)
+void pci_std_vga_mmio_region_init(VGACommonState *s,
+ MemoryRegion *parent,
+ MemoryRegion *subs,
+ bool qext)
{
memory_region_init_io(&subs[0], NULL, &pci_vga_ioport_ops, s,
"vga ioports remapped", PCI_VGA_IOPORT_SIZE);