mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-11 05:17:59 +03:00
guest: Enable USB input devices for RISC-V virt guests
If USB support is available, we can use USB input devices too. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
9bec57723e
commit
20c212cdfc
@ -32,6 +32,8 @@
|
|||||||
<source mode="bind"/>
|
<source mode="bind"/>
|
||||||
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||||
</channel>
|
</channel>
|
||||||
|
<input type="tablet" bus="usb"/>
|
||||||
|
<input type="keyboard" bus="usb"/>
|
||||||
<graphics type="vnc" port="-1"/>
|
<graphics type="vnc" port="-1"/>
|
||||||
<video>
|
<video>
|
||||||
<model type="virtio"/>
|
<model type="virtio"/>
|
||||||
|
@ -719,7 +719,9 @@ class Guest(XMLBuilder):
|
|||||||
usb_keyboard = False
|
usb_keyboard = False
|
||||||
if self.os.is_x86() and not self.os.is_xenpv():
|
if self.os.is_x86() and not self.os.is_xenpv():
|
||||||
usb_tablet = self.osinfo.supports_usbtablet()
|
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_tablet = True
|
||||||
usb_keyboard = True
|
usb_keyboard = True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user