mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
virtio-vga: add '-vga virtio' support
Some convinience fluff: Add support for '-vga virtio', also add virtio-vga to the list of vga cards so '-device virtio-vga' will turn off the default vga. Written by Dave Airlie and Gerd Hoffmann. Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
c5d4dac86b
commit
a94f0c5ca2
5 changed files with 22 additions and 2 deletions
|
@ -179,6 +179,9 @@ ISADevice *isa_vga_init(ISABus *bus)
|
|||
case VGA_VMWARE:
|
||||
fprintf(stderr, "%s: vmware_vga: no PCI bus\n", __func__);
|
||||
return NULL;
|
||||
case VGA_VIRTIO:
|
||||
fprintf(stderr, "%s: virtio-vga: no PCI bus\n", __func__);
|
||||
return NULL;
|
||||
case VGA_NONE:
|
||||
default:
|
||||
return NULL;
|
||||
|
|
|
@ -1698,6 +1698,8 @@ PCIDevice *pci_vga_init(PCIBus *bus)
|
|||
return pci_create_simple(bus, -1, "VGA");
|
||||
case VGA_VMWARE:
|
||||
return pci_create_simple(bus, -1, "vmware-svga");
|
||||
case VGA_VIRTIO:
|
||||
return pci_create_simple(bus, -1, "virtio-vga");
|
||||
case VGA_NONE:
|
||||
default: /* Other non-PCI types. Checking for unsupported types is already
|
||||
done in vl.c. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue