[virt-tools-list] [virt-manager PATCH 2/4] osdict: Add supports_virtioballoon()
Andrea Bolognani
abologna at redhat.com
Thu Jun 13 10:55:08 UTC 2019
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
virtinst/osdict.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/virtinst/osdict.py b/virtinst/osdict.py
index d83f9cef..37ad7320 100644
--- a/virtinst/osdict.py
+++ b/virtinst/osdict.py
@@ -491,6 +491,12 @@ class _OsVariant(object):
"http://pcisig.com/pci/1af4/1044"]
return bool(self._device_filter(devids=devids))
+ def supports_virtioballoon(self):
+ # virtio-balloon and virtio1.0-balloon
+ devids = ["http://pcisig.com/pci/1af4/1002",
+ "http://pcisig.com/pci/1af4/1045"]
+ return bool(self._device_filter(devids=devids))
+
def supports_virtioserial(self):
devids = ["http://pcisig.com/pci/1af4/1003",
"http://pcisig.com/pci/1af4/1043"]
--
2.21.0
More information about the virt-tools-list
mailing list