]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/loongarch: Add compatible support about VM reboot
authorBibo Mao <maobibo@loongson.cn>
Tue, 27 Aug 2024 03:58:07 +0000 (11:58 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 12 Sep 2024 12:51:18 +0000 (20:51 +0800)
commita840d70ee474c514b939f6f16fd51396c73d01c7
treea4016a107823ba4b8f4bd25a734590266eb08fc4
parent4b7ea33074450bc6148c8e1545d78f179e64adb4
target/loongarch: Add compatible support about VM reboot

With edk2-stable202408 LoongArch UEFI bios, CSR PGD register is set only
if its value is equal to zero for boot cpu, it causes reboot issue. Since
CSR PGD register is changed with linux kernel, UEFI BIOS cannot use it.

Add workaround to clear CSR registers relative with TLB in function
loongarch_cpu_reset_hold(), so that VM can reboot with edk2-stable202408
UEFI bios.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240827035807.3326293-1-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
target/loongarch/cpu.c