8d6890f068
virt-manager-2.1.0.tar.bz2 virtman-fix-env-script-interpreter.patch * Bash autocompletion support (Lin Ma, Cole Robinson) * UI and command line –vsock support (Slavomir Kaslev) * virt-xml: Add –os-variant option (Andrea Bolognani) * virt-install: use libosinfo cpu, mem, disk size defaults (Fabiano Fidencio) * virt-install: Better usage of libosinfo -unknown distro IDs (Fabiano Fidencio) * virt-install: More usage of libosinfo for ISO –location detection * virt-install: Add –location LOCATION,kernel=X,initrd=Y for pointing to kernel/initrd in media that virt-install/libosinfo fails to detect - Drop 25b88733-urldetect-Dont-overload-suse_content-variable.patch 9308bae3-util-Fix-typo-vpcu-vcpu.patch b8aff280-virtinst-quickfix-ubuntu-net-preseed-insert-cdrom-error.patch c30b3bc6-increase-timeout-for-vm-to-start.patch virtinst-use-latest-opensuse-version-when-unknown-media.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=456
37 lines
1.7 KiB
Diff
37 lines
1.7 KiB
Diff
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-2.1.0/virtinst/domain/cpu.py
|
|
===================================================================
|
|
--- virt-manager-2.1.0.orig/virtinst/domain/cpu.py
|
|
+++ virt-manager-2.1.0/virtinst/domain/cpu.py
|
|
@@ -87,12 +87,16 @@ class DomainCpu(XMLBuilder):
|
|
val = self.SPECIAL_MODE_HOST_MODEL
|
|
|
|
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_child(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(guest)
|