]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Use host-model CPU on s390 by default
authorJiri Denemark <jdenemar@redhat.com>
Tue, 12 Nov 2019 14:28:33 +0000 (15:28 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 25 Nov 2019 14:29:19 +0000 (15:29 +0100)
commit24d820229485d018ba68e5beee3a1caead5ee7fc
tree60e3bc740b31aad5652fd97007b496279054f5da
parent0a24331c6ede568a05468c53644396585ec6ba24
qemu: Use host-model CPU on s390 by default

On s390 machines host-passthrough and host-model CPUs result in the same
guest ABI (with QEMU new enough to be able to tell us what "host" CPU is
expanded to, which was implemented around 2.9.0). So instead of using
host-passthrough CPU when there's no CPU specified in a domain XML we
can safely use host-model and benefit from CPU compatibility checks
during migration, snapshot restore and similar operations.

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