- bsc#1067018 - L3: KVM Guest creation failed - Property .cmt not
found virtinst-dont-use-special-copy-cpu-features.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=412
This commit is contained in:
parent
e1b38395c1
commit
7c3d2b4d0f
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 7 15:19:38 MST 2018 - carnold@suse.com
|
||||
|
||||
- bsc#1067018 - L3: KVM Guest creation failed - Property .cmt not
|
||||
found
|
||||
virtinst-dont-use-special-copy-cpu-features.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 5 13:32:19 UTC 2018 - jengelh@inai.de
|
||||
|
||||
|
@ -82,6 +82,7 @@ Patch167: virtinst-no-usb-tablet-for-xenpv.patch
|
||||
Patch168: virtinst-add-sle15-detection-support.patch
|
||||
Patch169: virtinst-keep-install-iso-attached.patch
|
||||
Patch170: virtinst-osdict-get_supported.patch
|
||||
Patch171: virtinst-dont-use-special-copy-cpu-features.patch
|
||||
# Python2 to Python3 patches
|
||||
Patch200: virtmisc-python2-to-python3-conversion.patch
|
||||
Patch201: virtcli-python2-to-python3-conversion.patch
|
||||
@ -221,6 +222,7 @@ machine).
|
||||
%patch168 -p1
|
||||
%patch169 -p1
|
||||
%patch170 -p1
|
||||
%patch171 -p1
|
||||
# Python2 to Python3 patches
|
||||
%patch200 -p1
|
||||
%patch201 -p1
|
||||
|
36
virtinst-dont-use-special-copy-cpu-features.patch
Normal file
36
virtinst-dont-use-special-copy-cpu-features.patch
Normal file
@ -0,0 +1,36 @@
|
||||
References: bsc#1067018 - L3: KVM Guest creation failed - Property .cmt not found
|
||||
|
||||
Some hardware has the .cmt cpu feature but qemu doesn't support it. libvirt
|
||||
includes it in the cpu capabilities read in by virt-manager. Using 'host-model'
|
||||
was known to have issues in the past and so a copy method was set up to
|
||||
manually copy cpu features one at a time (including the unsupported cmt flag).
|
||||
This patch simply avoids the special copy feature when "Copy host CPU definition"
|
||||
is set in the Preferences -> New VM -> CPU Default pop-up menu and falls
|
||||
back to using 'host-model'.
|
||||
|
||||
It should be noted that selecting "Customize configuration before install"
|
||||
and "CPUs" -> "Copy host CPU definition" also inserts 'host-model' so
|
||||
this change mirrors what is already done there.
|
||||
|
||||
Index: virt-manager-1.5.0/virtinst/cpu.py
|
||||
===================================================================
|
||||
--- virt-manager-1.5.0.orig/virtinst/cpu.py
|
||||
+++ virt-manager-1.5.0/virtinst/cpu.py
|
||||
@@ -98,12 +98,16 @@ class CPU(XMLBuilder):
|
||||
SPECIAL_MODE_HOST_PASSTHROUGH, SPECIAL_MODE_CLEAR]
|
||||
def set_special_mode(self, val):
|
||||
if (val == self.SPECIAL_MODE_HOST_MODEL or
|
||||
- val == self.SPECIAL_MODE_HOST_PASSTHROUGH):
|
||||
+ val == self.SPECIAL_MODE_HOST_PASSTHROUGH or
|
||||
+ val == self.SPECIAL_MODE_HOST_COPY):
|
||||
self.model = None
|
||||
self.vendor = None
|
||||
self.model_fallback = None
|
||||
for f in self.features:
|
||||
self.remove_feature(f)
|
||||
+ if val == self.SPECIAL_MODE_HOST_COPY:
|
||||
+ val = self.SPECIAL_MODE_HOST_MODEL
|
||||
+ self.match = "exact"
|
||||
self.mode = val
|
||||
elif val == self.SPECIAL_MODE_HOST_COPY:
|
||||
self.copy_host_cpu()
|
Loading…
Reference in New Issue
Block a user