mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-09 08:58:27 +03:00
osdict: Add supports_virtioinput()
We can use this function to figure out whether the guest OS supports VirtIO input devices (virtio-tablet, virtio-keyboard and virtio-mouse). Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
5dad99216e
commit
708af01c14
@ -427,6 +427,11 @@ class _OsVariant(object):
|
||||
# Remove this hack after 6 months or so
|
||||
return self._is_related_to("rhel6.0")
|
||||
|
||||
def supports_virtioinput(self):
|
||||
# virtio1.0-input
|
||||
devids = ["http://pcisig.com/pci/1af4/1052"]
|
||||
return bool(self._device_filter(devids=devids))
|
||||
|
||||
def supports_usb3(self):
|
||||
# qemu-xhci
|
||||
devids = ["http://pcisig.com/pci/1b36/0004"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user