From ef6bb90b922b3c2d6a77f5a841338c0517c7ee78 Mon Sep 17 00:00:00 2001 From: Charles Arnold Date: Tue, 12 Nov 2019 17:20:20 +0000 Subject: [PATCH] - 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 --- ...apabilities-Add-supports_video_bochs.patch | 29 +++++++++++++++++++ virt-manager.changes | 6 ++++ virt-manager.spec | 6 ++-- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 2e20b128-domcapabilities-Add-supports_video_bochs.patch diff --git a/2e20b128-domcapabilities-Add-supports_video_bochs.patch b/2e20b128-domcapabilities-Add-supports_video_bochs.patch new file mode 100644 index 00000000..acb74c5a --- /dev/null +++ b/2e20b128-domcapabilities-Add-supports_video_bochs.patch @@ -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 + +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) diff --git a/virt-manager.changes b/virt-manager.changes index 571ac43f..b90e0a3b 100644 --- a/virt-manager.changes +++ b/virt-manager.changes @@ -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 diff --git a/virt-manager.spec b/virt-manager.spec index 7ac7c4f9..9f93bce6 100644 --- a/virt-manager.spec +++ b/virt-manager.spec @@ -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