Current libvirt makes a migratable host CPU model by removing features
marked in cpu_map.xml with migratable='no'. This is not ideal because
cpu_map.xml is a static database while feature migrtability may differ
depending on a hypervisor or its version. Thus we should preferably use
the data we got from QEMU.
Jiri Denemark (7):
cpu: Introduce virCPUCopyMigratable
qemu: Move common code in virQEMUCapsInitCPUModel one layer up
qemu: Add migratable parameter to virQEMUCapsInitCPUModel
qemu: Move qemuCaps->{kvm,tcg}CPUModel into a struct
qemu: Store migratable host CPU model in qemuCaps
qemu: Pass migratable host model to virCPUUpdate
cpu: Drop feature filtering from virCPUUpdate
src/cpu/cpu.c | 29 +++++++
src/cpu/cpu.h | 8 ++
src/cpu/cpu_x86.c | 34 ++++++--
src/libvirt_private.syms | 1 +
src/qemu/qemu_capabilities.c | 200 ++++++++++++++++++++++++++++++-------------
src/qemu/qemu_capabilities.h | 3 +-
src/qemu/qemu_capspriv.h | 3 +-
src/qemu/qemu_command.c | 2 +-
src/qemu/qemu_process.c | 4 +-
tests/cputest.c | 9 +-
10 files changed, 221 insertions(+), 72 deletions(-)
--
2.12.0