video: RISC-V virt guests support virtio-gpu

QXL, on the other hand, is still x86-only for some reason.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
Andrea Bolognani 2019-04-04 12:49:48 +02:00 committed by Cole Robinson
parent 1c907488f3
commit 1e3de807a6
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@
</channel>
<graphics type="vnc" port="-1"/>
<video>
<model type="qxl"/>
<model type="virtio"/>
</video>
<rng model="virtio">
<backend model="random">/dev/urandom</backend>

View File

@ -43,7 +43,7 @@ class DeviceVideo(Device):
def default_model(guest):
if guest.os.is_pseries():
return "vga"
if guest.os.is_arm_machvirt():
if guest.os.is_arm_machvirt() or guest.os.is_riscv_virt():
return "virtio"
if guest.conn.is_qemu() and guest.os.is_s390x():
return "virtio"