]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: QemuVideoDxe: add virtio-vga support
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 23 Jun 2015 20:47:27 +0000 (20:47 +0000)
committerlersek <lersek@Edk2>
Tue, 23 Jun 2015 20:47:27 +0000 (20:47 +0000)
Qemu commit c5d4dac ("virtio-vga: add virtio gpu device with vga
compatibility") enables OVMF to drive the virtio-vga device:

The vga compatibility part of virtio-vga is identical to the qemu
standard vga, so supporting that is as easy as adding the PCI ID
to the list.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
[lersek@redhat.com: subject fixup and QEMU commit reference in commit msg]
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17690 6f19259b-4bc3-4df7-8a09-765794883524

OvmfPkg/QemuVideoDxe/Driver.c

index c74d1a2ab8b563a45820210f6e6eb15ad7014e3e..8d962b4438982ffbae4e838dd07be4d812a57111 100644 (file)
@@ -52,6 +52,11 @@ QEMU_VIDEO_CARD gQemuVideoCardList[] = {
         0x0100,\r
         QEMU_VIDEO_BOCHS,\r
         L"QEMU QXL VGA"\r
+    },{\r
+        0x1af4,\r
+        0x1050,\r
+        QEMU_VIDEO_BOCHS_MMIO,\r
+        L"QEMU VirtIO VGA"\r
     },{\r
         0 /* end of list */\r
     }\r