If USB support is available, we can use USB input devices too. Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx> --- tests/cli-test-xml/compare/virt-install-riscv64-graphics.xml | 2 ++ virtinst/guest.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) 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 2f5f0e7a..f2f1b842 100644 --- a/tests/cli-test-xml/compare/virt-install-riscv64-graphics.xml +++ b/tests/cli-test-xml/compare/virt-install-riscv64-graphics.xml @@ -32,6 +32,8 @@ <source mode="bind"/> <target type="virtio" name="org.qemu.guest_agent.0"/> </channel> + <input type="tablet" bus="usb"/> + <input type="keyboard" bus="usb"/> <graphics type="vnc" port="-1"/> <video> <model type="virtio"/> diff --git a/virtinst/guest.py b/virtinst/guest.py index 9d38859c..d79b91eb 100644 --- a/virtinst/guest.py +++ b/virtinst/guest.py @@ -719,7 +719,9 @@ class Guest(XMLBuilder): usb_keyboard = False if self.os.is_x86() and not self.os.is_xenpv(): usb_tablet = self.osinfo.supports_usbtablet() - if self.os.is_arm_machvirt() or self.os.is_pseries(): + if (self.os.is_arm_machvirt() or + self.os.is_riscv_virt() or + self.os.is_pseries()): usb_tablet = True usb_keyboard = True -- 2.20.1 _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list