Laszlo Ersek
706b5b6277
qemu: map "virtio" video model to "virt" machtype correctly (arm/aarch64)
...
Most of QEMU's PCI display device models, such as:
libvirt video/model/@type QEMU -device
------------------------- ------------
cirrus cirrus-vga
vga VGA
qxl qxl-vga
virtio virtio-vga
come with a linear framebuffer (sometimes called "VGA compatibility
framebuffer"). This linear framebuffer lives in one of the PCI device's
MMIO BARs, and allows guest code (primarily: firmware drivers, and
non-accelerated OS drivers) to display graphics with direct memory access.
Due to architectural reasons on aarch64/KVM hosts, this kind of
framebuffer doesn't / can't work in
qemu-system-(arm|aarch64) -M virt
machines. Cache coherency issues guarantee a corrupted / unusable display.
The problem has been researched by several people, including kvm-arm
maintainers, and it's been decided that the best way (practically the only
way) to have boot time graphics for such guests is to consolidate on
QEMU's "virtio-gpu-pci" device.
>From <https://bugzilla.redhat.com/show_bug.cgi?id=1195176 >, libvirt
supports
<devices>
<video>
<model type='virtio'/>
</video>
</devices>
but libvirt unconditionally maps @type='virtio' to QEMU's "virtio-vga"
device model. (See the qemuBuildDeviceVideoStr() function and the
"qemuDeviceVideo" enum impl.)
According to the above, this is not right for the "virt" machine type; the
qemu-system-(arm|aarch64) binaries don't even recognize the "virtio-vga"
device model (justifiedly). Whereas "virtio-gpu-pci", which is a pure
virtio device without a compatibility framebuffer, is available, and works
fine.
(The ArmVirtQemu ("AAVMF") platform of edk2 -- that is, the UEFI firmware
for "virt" -- supports "virtio-gpu-pci", as of upstream commit
3ef3209d3028. See
<https://tianocore.acgmultimedia.com/show_bug.cgi?id=66 >.)
Override the default mapping of "virtio", from "virtio-vga" to
"virtio-gpu-pci", if qemuDomainMachineIsVirt() evaluates to true.
Cc: Andrea Bolognani <abologna@redhat.com>
Cc: Drew Jones <drjones@redhat.com>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: Martin Kletzander <mkletzan@redhat.com>
Suggested-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1372901
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Acked-by: Martin Kletzander <mkletzan@redhat.com>
2016-09-16 14:13:07 +02:00
..
2016-02-16 14:58:58 +01:00
2016-02-16 15:42:20 +01:00
2016-02-16 15:42:20 +01:00
2016-05-18 11:27:56 +02:00
2016-05-18 11:27:56 +02:00
2016-05-18 11:27:56 +02:00
2016-02-16 15:42:20 +01:00
2016-02-16 15:39:57 +01:00
2016-02-16 15:39:57 +01:00
2016-09-16 14:13:07 +02:00
2016-06-17 18:30:04 +02:00
2016-06-17 18:30:04 +02:00
2016-05-25 17:15:21 +02:00
2016-05-25 15:00:25 -04:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-08-03 06:36:22 -04:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-06-14 08:25:25 +02:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-07-27 13:38:53 +02:00
2016-04-18 12:31:50 -04:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-04-26 10:29:44 -04:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-22 10:10:52 +00:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-07-01 15:46:24 -04:00
2016-06-21 14:31:19 -04:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-03-01 14:17:09 +01:00
2016-03-01 14:17:09 +01:00
2016-03-01 14:17:09 +01:00
2016-03-01 14:17:09 +01:00
2016-06-09 14:43:39 +02:00
2016-06-09 14:43:15 +02:00
2016-03-01 14:17:09 +01:00
2016-03-01 14:17:09 +01:00
2016-06-09 14:43:15 +02:00
2016-05-17 10:41:45 +02:00
2016-03-01 14:17:09 +01:00
2016-05-20 10:05:55 +02:00
2016-06-09 14:42:48 +02:00
2016-04-11 13:50:55 +02:00
2016-06-09 14:42:48 +02:00
2016-05-20 10:05:55 +02:00
2016-03-01 14:17:09 +01:00
2016-06-09 14:42:48 +02:00
2016-03-01 14:17:09 +01:00
2016-03-01 14:17:09 +01:00
2016-03-01 14:17:09 +01:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-04-18 12:31:50 -04:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-04-18 12:31:50 -04:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-03-28 13:10:18 -04:00
2016-02-09 16:09:01 -05:00
2016-03-28 13:10:18 -04:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-07-12 12:36:13 +02:00
2016-02-09 16:09:01 -05:00
2016-05-17 10:41:45 +02:00
2016-05-02 17:01:40 +02:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-05-04 09:59:14 -04:00
2016-05-04 09:59:14 -04:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-07-01 15:46:52 -04:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-05-17 10:41:45 +02:00
2016-05-17 10:41:45 +02:00
2016-07-01 21:13:31 -04:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-09-09 16:16:59 +02:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-03-01 14:17:09 +01:00
2016-03-01 14:17:09 +01:00
2016-05-20 13:54:26 -04:00
2016-02-09 16:09:01 -05:00
2016-03-01 14:17:09 +01:00
2016-04-14 14:00:34 -04:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-04-14 14:00:34 -04:00
2016-04-14 14:00:33 -04:00
2016-06-16 13:48:25 -04:00
2016-04-14 14:00:33 -04:00
2016-04-14 14:00:33 -04:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-04-14 14:00:33 -04:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-08-04 16:23:15 +02:00
2016-08-12 17:38:02 +02:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-04-14 14:00:33 -04:00
2016-04-14 14:00:33 -04:00
2016-04-14 14:00:33 -04:00
2016-04-14 14:00:33 -04:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-05-02 17:01:40 +02:00
2016-05-02 17:01:40 +02:00
2016-05-02 17:01:40 +02:00
2016-05-02 17:01:40 +02:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-03-01 14:17:09 +01:00
2016-02-09 16:09:01 -05:00
2016-05-23 09:39:40 +02:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-03-01 14:17:09 +01:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-09-09 08:09:03 -04:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-08-12 17:38:02 +02:00
2016-08-04 16:23:15 +02:00
2016-08-04 16:23:15 +02:00
2016-02-09 16:09:01 -05:00
2016-08-04 16:23:15 +02:00
2016-08-04 16:23:15 +02:00
2016-07-18 10:55:35 +02:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-06-07 12:42:54 +02:00
2016-06-07 12:42:54 +02:00
2016-03-01 14:17:09 +01:00
2016-06-09 14:44:08 +02:00
2016-03-01 14:17:09 +01:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-02-09 16:09:01 -05:00
2016-04-26 11:43:33 -04:00
2016-02-09 16:09:01 -05:00