2019-11-12 18:20:20 +01:00
|
|
|
Subject: domcapabilities: Add supports_video_bochs()
|
|
|
|
From: Fabiano Fidêncio fidencio@redhat.com Thu Oct 3 10:47:15 2019 +0200
|
|
|
|
Date: Fri Oct 4 11:15:09 2019 -0400:
|
|
|
|
Git: 2e20b128a1a1f064c5036d3d3d0cf5b09117b9da
|
|
|
|
|
|
|
|
Returns whether bochs display is supported, according to the domain
|
|
|
|
capabilities.
|
|
|
|
|
|
|
|
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
|
|
|
|
|
|
|
|
Index: virt-manager-2.2.1/virtinst/domcapabilities.py
|
|
|
|
===================================================================
|
|
|
|
--- virt-manager-2.2.1.orig/virtinst/domcapabilities.py
|
|
|
|
+++ virt-manager-2.2.1/virtinst/domcapabilities.py
|
2019-11-12 19:21:52 +01:00
|
|
|
@@ -325,6 +325,14 @@ class DomainCapabilities(XMLBuilder):
|
2019-11-12 18:20:20 +01:00
|
|
|
"""
|
|
|
|
return bool(self.features.sev.supported)
|
|
|
|
|
|
|
|
+ def supports_video_bochs(self):
|
|
|
|
+ """
|
|
|
|
+ Returns False if either libvirt or qemu do not have support to bochs
|
|
|
|
+ video type.
|
|
|
|
+ """
|
|
|
|
+ models = self.devices.video.get_enum("modelType").get_values()
|
|
|
|
+ return bool("bochs" in models)
|
|
|
|
+
|
|
|
|
XML_NAME = "domainCapabilities"
|
|
|
|
os = XMLChildProperty(_OS, is_single=True)
|
|
|
|
cpu = XMLChildProperty(_CPU, is_single=True)
|