[virt-tools-list] [virt-manager PATCH 6/9] guest: RISC-V virt guests support virtio-rng

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


Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 tests/cli-test-xml/compare/virt-install-riscv64-graphics.xml | 3 +++
 tests/cli-test-xml/compare/virt-install-riscv64-headless.xml | 3 +++
 virtinst/guest.py                                            | 1 +
 3 files changed, 7 insertions(+)

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 803d857d..5186cc82 100644
--- a/tests/cli-test-xml/compare/virt-install-riscv64-graphics.xml
+++ b/tests/cli-test-xml/compare/virt-install-riscv64-graphics.xml
@@ -35,5 +35,8 @@
     <video>
       <model type="qxl"/>
     </video>
+    <rng model="virtio">
+      <backend model="random">/dev/urandom</backend>
+    </rng>
   </devices>
 </domain>
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 be29d059..ba0a48b0 100644
--- a/tests/cli-test-xml/compare/virt-install-riscv64-headless.xml
+++ b/tests/cli-test-xml/compare/virt-install-riscv64-headless.xml
@@ -31,5 +31,8 @@
       <source mode="bind"/>
       <target type="virtio" name="org.qemu.guest_agent.0"/>
     </channel>
+    <rng model="virtio">
+      <backend model="random">/dev/urandom</backend>
+    </rng>
   </devices>
 </domain>
diff --git a/virtinst/guest.py b/virtinst/guest.py
index 1f4e6a37..7249686e 100644
--- a/virtinst/guest.py
+++ b/virtinst/guest.py
@@ -833,6 +833,7 @@ class Guest(XMLBuilder):
             return
         if not (self.os.is_x86() or
                 self.os.is_arm_machvirt() or
+                self.os.is_riscv_virt() or
                 self.os.is_s390x() or
                 self.os.is_pseries()):
             return
-- 
2.20.1




More information about the virt-tools-list mailing list