]> xenbits.xensource.com Git - libvirt.git/commit
qemu_capabilities: Disable CPU models on old s390 machine types
authorJiri Denemark <jdenemar@redhat.com>
Thu, 6 Feb 2020 09:22:23 +0000 (10:22 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 7 Feb 2020 08:19:02 +0000 (09:19 +0100)
commitc6ff3d1535480ef7fac8c9911ad7715f7d0e2acb
treee1802f626a1d8c7b518b839d9bcd08ba5df8bf5f
parent8c3aed23613d0831fc7d0fe98e1aa07604a9bfca
qemu_capabilities: Disable CPU models on old s390 machine types

Starting a KVM domain on s390 with old machine type (such as
s390-ccw-virtio-2.5) and without any guest CPU model configured fails
with

    CPU models are not available: KVM doesn't support CPU models

QEMU error. This is cause by libvirt using host-model CPU as the default
CPU based on QEMU reporting "host" CPU model as being the default one
(see commit v5.9.0-402-g24d8202294: qemu: Use host-model CPU on s390 by
default). However, even though both QEMU and KVM support CPU models on
s390 and QEMU can give us the host-model CPU, we can't use it with old
machine types which only support -cpu host.

https://bugzilla.redhat.com/show_bug.cgi?id=1795651

Reported-by: Christian Ehrhardt <paelzer@gmail.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_capabilities.c
tests/qemuxml2argvdata/s390-default-cpu-kvm-ccw-virtio-2.7.s390x-latest.args
tests/qemuxml2xmloutdata/s390-default-cpu-kvm-ccw-virtio-2.7.s390x-latest.xml