- Upstream bug fixes (bsc#1027942)

2e20b128-domcapabilities-Add-supports_video_bochs.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=486
This commit is contained in:
Charles Arnold 2019-11-12 17:20:20 +00:00 committed by Git OBS Bridge
parent 849b03f9b9
commit ef6bb90b92
3 changed files with 39 additions and 2 deletions

View File

@ -0,0 +1,29 @@
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
@@ -324,6 +324,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)

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 12 10:17:56 MST 2019 - carnold@suse.com
- Upstream bug fixes (bsc#1027942)
2e20b128-domcapabilities-Add-supports_video_bochs.patch
-------------------------------------------------------------------
Mon Oct 28 07:35:25 MDT 2019 - carnold@suse.com

View File

@ -39,8 +39,9 @@ Patch4: 53245827-urlfetcher-Force-a-flush-after-writing-to-a-file.patch
Patch5: 3009888a-urlfetcher-Dont-override-fullurl-when-its-explicitly-set.patch
Patch6: 9465da41-urlfetcher-Deal-with-file-in-_LocalURLFetcher.patch
Patch7: 651e5b6d-devices-video-Simplify-model-hvm-check.patch
Patch8: d9736db9-addhardware-Add-bochs-display-to-the-video-list.patch
Patch9: 8f4c53ea-video-Prefer-bochs-when-its-supported..patch
Patch8: 2e20b128-domcapabilities-Add-supports_video_bochs.patch
Patch9: d9736db9-addhardware-Add-bochs-display-to-the-video-list.patch
Patch10: 8f4c53ea-video-Prefer-bochs-when-its-supported..patch
# SUSE Only
Patch70: virtman-desktop.patch
Patch71: virtman-kvm.patch
@ -182,6 +183,7 @@ machine).
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
# SUSE Only
%patch70 -p1
%patch71 -p1