]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Make sure host-model uses CPU model supported by QEMU
authorJiri Denemark <jdenemar@redhat.com>
Thu, 7 Dec 2017 10:23:50 +0000 (11:23 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 8 Dec 2017 14:50:52 +0000 (15:50 +0100)
commitce73de441d35e17a29b83b8741e668a6ddc013ba
tree4fc0874e1ae359208114e8d72edc58824fee098c
parent4486dcdb4a386a906807d4eb7de586202e50cd18
qemu: Make sure host-model uses CPU model supported by QEMU

When reconnecting to a running domain started by old libvirt, which did
not change host-model into a custom CPU definition, we replace the CPU
definition with a specific CPU model from host capabilities. However,
that CPU model may not be supported by the running qemu process. We need
to translate the CPU model to one of the models which libvirt could have
used when starting the domain.

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

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_process.c