diff options
| author | Xianglai Li <lixianglai@loongson.cn> | 2025-03-24 20:33:28 +0800 |
|---|---|---|
| committer | Song Gao <gaosong@loongson.cn> | 2025-03-27 20:29:17 +0800 |
| commit | 0c346576e401d83becb075e70fef207a09afc3e6 (patch) | |
| tree | ff9d82750376eab5e61940a63b21671ae61a3fc0 /hw/arm/fsl-imx8mp.c | |
| parent | b876e721f1c939f3e83ac85bd3c1c2821e12b3fa (diff) | |
| download | focaccia-qemu-0c346576e401d83becb075e70fef207a09afc3e6.tar.gz focaccia-qemu-0c346576e401d83becb075e70fef207a09afc3e6.zip | |
target/loongarch: Fix the cpu unplug resource leak
When the cpu is created, qemu_add_vm_change_state_handler is called in the kvm_arch_init_vcpu function to create the VMChangeStateEntry resource. However, the resource is not released when the cpu is destroyed. This results in a qemu process segment error when the virtual machine restarts after the cpu is unplugged. This patch solves the problem by adding the corresponding resource release process to the kvm_arch_destroy_vcpu function. Signed-off-by: Xianglai Li <lixianglai@loongson.cn> Reviewed-by: Bibo Mao <maobibo@loongson.cn> Message-Id: <20250324123328.518076-1-lixianglai@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'hw/arm/fsl-imx8mp.c')
0 files changed, 0 insertions, 0 deletions