]> xenbits.xensource.com Git - libvirt.git/commit
cpu: Add removedPolicy parameter to virCPUUpdate
authorJiri Denemark <jdenemar@redhat.com>
Fri, 26 Apr 2024 07:57:31 +0000 (09:57 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 2 May 2024 17:56:45 +0000 (19:56 +0200)
commit30458c6071cd00359de032d393c026dd1b31de17
treefab973a5891be1a4e8374aaed196c1bfce27ba1d
parent8c1b07b088dbc1a0e99c0b2e6f5133342a9b3c81
cpu: Add removedPolicy parameter to virCPUUpdate

virCPUUpdate check the CPU definition for features that were marked as
removed in the specified CPU model and explicitly adds those that were
not mentioned in the definition. So far such features were added with
VIR_CPU_FEATURE_DISABLE policy, but the caller may want to use a
different policy in some situations, which is now possible via the
removedPolicy parameter.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/cpu/cpu.c
src/cpu/cpu.h
src/cpu/cpu_arm.c
src/cpu/cpu_loongarch.c
src/cpu/cpu_ppc64.c
src/cpu/cpu_riscv64.c
src/cpu/cpu_s390.c
src/cpu/cpu_x86.c
src/qemu/qemu_domain.c
src/qemu/qemu_process.c
tests/cputest.c