[virt-tools-list] [virt-manager PATCH 7/9] video: RISC-V virt guests support virtio-gpu

Andrea Bolognani abologna at redhat.com
Thu Apr 4 10:49:48 UTC 2019


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

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 tests/cli-test-xml/compare/virt-install-riscv64-graphics.xml | 2 +-
 virtinst/devices/video.py                                    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/cli-test-xml/compare/virt-install-riscv64-graphics.xml b/tests/cli-test-xml/compare/virt-install-riscv64-graphics.xml
index 5186cc82..211c062e 100644
--- a/tests/cli-test-xml/compare/virt-install-riscv64-graphics.xml
+++ b/tests/cli-test-xml/compare/virt-install-riscv64-graphics.xml
@@ -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>
diff --git a/virtinst/devices/video.py b/virtinst/devices/video.py
index 785d4127..91708935 100644
--- a/virtinst/devices/video.py
+++ b/virtinst/devices/video.py
@@ -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"
-- 
2.20.1




More information about the virt-tools-list mailing list