2d558399a0
57db4185-virt-clone-fix-force-copy-of-empty-cdrom-or-floppy-disk.patch 26a433fc-virtManager-clone-check-which-storage-pools-supports-volume-cloning.patch 4f66c423-cloner-Handle-nonsparse-for-qcow2-images.patch a02fc0d0-virtManager-clone-build-default-clone-path-if-we-know-how.patch 1856c1fa-support-Fix-minimum-version-check.patch 74bbc3db-urldetect-Check-also-for-treeinfo.patch 708af01c-osdict-Add-supports_virtioinput.patch f23b01be-guest-Add-VirtIO-input-devices-to-s390x-guests-with-graphics.patch 7afbb90b-virt-xml-Handle-VM-names-that-look-like-id-uuid.patch a0ca387a-cli-Fix-pool-default-when-path-belongs-to-another-pool.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=465
28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
Subject: osdict: Add supports_virtioinput()
|
|
From: Andrea Bolognani abologna@redhat.com Wed Mar 20 16:52:34 2019 +0100
|
|
Date: Thu Mar 21 15:31:20 2019 +0100:
|
|
Git: 708af01c145dcaf5146901d18e22d1da61e09444
|
|
|
|
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>
|
|
|
|
Index: virt-manager-2.1.0/virtinst/osdict.py
|
|
===================================================================
|
|
--- virt-manager-2.1.0.orig/virtinst/osdict.py
|
|
+++ virt-manager-2.1.0/virtinst/osdict.py
|
|
@@ -390,6 +390,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"]
|