[virt-tools-list] [virt-manager PATCH 5/9] guest: RISC-V virt guests have VirtIO support

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


Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 .../cli-test-xml/compare/virt-install-riscv64-graphics.xml | 7 ++++++-
 .../cli-test-xml/compare/virt-install-riscv64-headless.xml | 7 ++++++-
 virtinst/guest.py                                          | 1 +
 3 files changed, 13 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 ff7324a9..803d857d 100644
--- a/tests/cli-test-xml/compare/virt-install-riscv64-graphics.xml
+++ b/tests/cli-test-xml/compare/virt-install-riscv64-graphics.xml
@@ -19,13 +19,18 @@
     <disk type="file" device="disk">
       <driver name="qemu" type="qcow2"/>
       <source file="/dev/default-pool/testvol1.img"/>
-      <target dev="hda" bus="ide"/>
+      <target dev="vda" bus="virtio"/>
     </disk>
     <interface type="bridge">
       <source bridge="eth0"/>
       <mac address="00:11:22:33:44:55"/>
+      <model type="virtio"/>
     </interface>
     <console type="pty"/>
+    <channel type="unix">
+      <source mode="bind"/>
+      <target type="virtio" name="org.qemu.guest_agent.0"/>
+    </channel>
     <graphics type="vnc" port="-1"/>
     <video>
       <model type="qxl"/>
diff --git a/tests/cli-test-xml/compare/virt-install-riscv64-headless.xml b/tests/cli-test-xml/compare/virt-install-riscv64-headless.xml
index ef0ffb88..be29d059 100644
--- a/tests/cli-test-xml/compare/virt-install-riscv64-headless.xml
+++ b/tests/cli-test-xml/compare/virt-install-riscv64-headless.xml
@@ -19,12 +19,17 @@
     <disk type="file" device="disk">
       <driver name="qemu" type="qcow2"/>
       <source file="/dev/default-pool/testvol1.img"/>
-      <target dev="hda" bus="ide"/>
+      <target dev="vda" bus="virtio"/>
     </disk>
     <interface type="bridge">
       <source bridge="eth0"/>
       <mac address="00:11:22:33:44:55"/>
+      <model type="virtio"/>
     </interface>
     <console type="pty"/>
+    <channel type="unix">
+      <source mode="bind"/>
+      <target type="virtio" name="org.qemu.guest_agent.0"/>
+    </channel>
   </devices>
 </domain>
diff --git a/virtinst/guest.py b/virtinst/guest.py
index 254aaa58..1f4e6a37 100644
--- a/virtinst/guest.py
+++ b/virtinst/guest.py
@@ -401,6 +401,7 @@ class Guest(XMLBuilder):
 
         # These _only_ support virtio so don't check the OS
         if (self.os.is_arm_machvirt() or
+            self.os.is_riscv_virt() or
             self.os.is_s390x() or
             self.os.is_pseries()):
             return True
-- 
2.20.1




More information about the virt-tools-list mailing list