domcapabilities: Add supports_video_bochs()
Returns whether bochs display is supported, according to the domain capabilities. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
parent
1547e16d62
commit
2e20b128a1
|
@ -325,6 +325,14 @@ class DomainCapabilities(XMLBuilder):
|
|||
"""
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue