libvirt/src/cpu
Jiri Denemark 7e0a310498 cpu_x86: Make sure removed features are always mentioned in CPU def
For backward compatibility with older versions of libvirt CPU models in
our CPU map are mostly immutable. We only changed them in a few specific
cases after showing it was safe. Sometimes QEMU developers realize a
specific feature should not be part of a particular (or any) CPU model
because it can never be enabled automatically without further
configuration. But we couldn't follow them because doing so would break
migration to older libvirt.

If QEMU drops feature F from CPU model M because F could not be enabled
automatically anyway, asking for M would never enable F. Even with older
QEMU versions. Naively removing F from libvirt's definition of M would
seem to work nicely on a single host. Libvirt would consider M to be
compatible with hosts CPU that do not support F. However, trying to
migrate domains using M without explicitly enabling or disabling F could
fail, because older libvirt would think F was enabled (it is part of M
there), but QEMU reports it as disabled once started.

Thus we can remove such feature from a libvirt's CPU model, but we have
to make sure any CPU definition using the affected model will always
explicitly mention the state of the removed feature.

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

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
2020-11-24 20:13:23 +01:00
..
cpu_arm_data.h cpu: Introduce virCPUarmData and related struts 2020-05-15 12:04:24 +02:00
cpu_arm.c cpu: Run arch specific code for virCPUUpdate for all custom CPUs 2020-11-24 20:13:23 +01:00
cpu_arm.h
cpu_map.c cpu_map: Remove unnecessary variable in loadData 2020-09-11 15:33:55 +02:00
cpu_map.h
cpu_ppc64_data.h
cpu_ppc64.c cpu: Run arch specific code for virCPUUpdate for all custom CPUs 2020-11-24 20:13:23 +01:00
cpu_ppc64.h
cpu_s390.c cpu: Run arch specific code for virCPUUpdate for all custom CPUs 2020-11-24 20:13:23 +01:00
cpu_s390.h
cpu_x86_data.h conf: add support for Direct Mode for Hyper-V Synthetic timers 2019-08-19 11:38:28 +02:00
cpu_x86.c cpu_x86: Make sure removed features are always mentioned in CPU def 2020-11-24 20:13:23 +01:00
cpu_x86.h cpu_conf: Pass policy to CPU feature filtering callbacks 2019-11-12 20:14:15 +01:00
cpu.c cpu: Run arch specific code for virCPUUpdate for all custom CPUs 2020-11-24 20:13:23 +01:00
cpu.h cpu: Run arch specific code for virCPUUpdate for all custom CPUs 2020-11-24 20:13:23 +01:00
meson.build meson: src: build libvirt.so library 2020-08-03 09:27:04 +02:00