]> git.ipfire.org Git - thirdparty/qemu.git/commit
i386/machine: Use VMSTATE_UINTTL_SUB_ARRAY for vmstate of CPUX86State.regs
authorZhao Liu <zhao1.liu@intel.com>
Thu, 11 Dec 2025 07:09:35 +0000 (15:09 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 27 Dec 2025 09:11:11 +0000 (10:11 +0100)
commitbb9f99e9baffb050fcddd324b31b20dd0a61adbc
tree9c5caf6a4fa11c5e63b8bff804bcbef88e39bfed
parent91bc4d81078ada320f6dd095e187c171d70cdc98
i386/machine: Use VMSTATE_UINTTL_SUB_ARRAY for vmstate of CPUX86State.regs

Before expanding the number of elements in the CPUX86State.regs array,
first use VMSTATE_UINTTL_SUB_ARRAY for the regs' vmstate to avoid the
type_check_array failure.

VMSTATE_UINTTL_SUB_ARRAY will also be used for subsequently added elements
in regs array.

Tested-by: Xudong Hao <xudong.hao@intel.com>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20251211070942.3612547-3-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/migration/cpu.h
target/i386/machine.c