When upgrading old libvirt on a host with EPYC host CPU (or any other
CPU which was added to cpu_map.xml in newer libvirt releases), we would
replace host-model CPU definition for running domains to EPYC even
though a different CPU model was used to start the domain. And sync old
libvirt doesn't know about EPYC, migrating the domain to another host
running the same old libvirt would be impossible.
https://bugzilla.redhat.com/show_bug.cgi?id=1521202
Jiri Denemark (2):
qemu: Separate fetching CPU definitions from filling qemuCaps
qemu: Make sure host-model uses CPU model supported by QEMU
src/qemu/qemu_capabilities.c | 59 +++++++++++++++++++++++++++-----------------
src/qemu/qemu_capabilities.h | 1 +
src/qemu/qemu_process.c | 30 ++++++++++++++++++++++
3 files changed, 68 insertions(+), 22 deletions(-)