qemu-cr16/target
Xiaoyao Li 639a294227 i386/kvm/cpu: Init SMM cpu address space for hotplugged CPUs
The SMM cpu address space is initialized in a machine_init_done
notifier. It only runs once when QEMU starts up, which leads to the
issue that for any hotplugged CPU after the machine is ready, SMM
cpu address space doesn't get initialized.

Fix the issue by initializing the SMM cpu address space in x86_cpu_plug()
when the cpu is hotplugged.

Fixes: 591f817d81 ("target/i386: Define enum X86ASIdx for x86's address spaces")
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Closes: https://lore.kernel.org/qemu-devel/CAFEAcA_3kkZ+a5rTZGmK8W5K6J7qpYD31HkvjBnxWr-fGT2h_A@mail.gmail.com/
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/r/20251014094216.164306-2-xiaoyao.li@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-10-28 12:39:59 +01:00
..
alpha target/alpha: Replace VMSTATE_UINTTL() -> VMSTATE_UINT64() 2025-10-16 10:33:34 +02:00
arm target/arm: Implement org.gnu.gdb.aarch64.tls XML feature in gdbstub 2025-10-23 13:35:04 +01:00
avr accel/tcg: Name gen_goto_tb()'s TB slot index as @tb_slot_idx 2025-10-16 10:33:33 +02:00
hexagon target/hexagon: Only indent on linux 2025-10-17 13:45:46 -07:00
hppa target/hppa: correct size bit parity for fmpyadd 2025-10-16 17:07:27 +02:00
i386 i386/kvm/cpu: Init SMM cpu address space for hotplugged CPUs 2025-10-28 12:39:59 +01:00
loongarch target/loongarch: Add bit A/D checking in TLB entry with PTW supported 2025-10-23 19:43:48 +08:00
m68k target/m68k: Remove pointless @cpu_halted TCGv 2025-10-16 17:07:27 +02:00
microblaze target/microblaze: Convert CPUMBState::res_addr field to uint32_t type 2025-10-16 17:07:27 +02:00
mips accel/tcg: Name gen_goto_tb()'s TB slot index as @tb_slot_idx 2025-10-16 10:33:33 +02:00
openrisc target/openrisc: Replace target_ulong -> uint32_t 2025-10-16 17:07:28 +02:00
ppc target/ppc/kvm: Remove kvmppc_get_host_model() as unused 2025-10-23 17:37:32 +05:30
riscv target/riscv: Make PMP CSRs conform to WARL constraints 2025-10-24 09:24:08 +10:00
rx target/rx: Un-inline various helpers 2025-10-16 17:07:52 +02:00
s390x * Improve cache handling for the msys2 CI and the functional asset cache 2025-10-16 12:27:12 -07:00
sh4 target/sh4: Remove target_ulong use in gen_goto_tb() 2025-10-16 17:07:52 +02:00
sparc target/sparc: Reduce inclusions of 'exec/cpu-common.h' 2025-10-16 17:07:52 +02:00
tricore target/tricore: Expand TCGv type for 32-bit target 2025-10-16 17:07:52 +02:00
xtensa target/xtensa: Remove target_ulong use in xtensa_get_tb_cpu_state() 2025-10-16 17:07:52 +02:00
Kconfig target/cris: Remove the deprecated CRIS target 2024-09-13 20:11:13 +02:00
meson.build target/cris: Remove the deprecated CRIS target 2024-09-13 20:11:13 +02:00