video: Prefer "bochs" when it's supported.

Preferring "bochs" display device is the way to go when dealing with a
Linux guest using UEFI and that's quite well described here:
https://www.kraxel.org/blog/2019/09/display-devices-in-qemu/

https://bugzilla.redhat.com/show_bug.cgi?id=1753644

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
Fabiano Fidêncio 2019-10-03 10:50:34 +02:00 committed by Cole Robinson
parent 2e20b128a1
commit 8f4c53ea96

View File

@ -39,6 +39,9 @@ class DeviceVideo(Device):
if guest.has_gl():
return "virtio"
return "qxl"
if (guest.is_uefi() and
guest.lookup_domcaps().supports_video_bochs()):
return "bochs"
if guest.conn.is_qemu():
return "qxl"
return "vga"