]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/loongarch/virt: Add reset support for kernel irqchip
authorBibo Mao <maobibo@loongson.cn>
Fri, 6 Jun 2025 06:30:30 +0000 (14:30 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 19 Jun 2025 07:52:35 +0000 (15:52 +0800)
commitc642ddf19b248bb668e40a8d15089b877e4057fa
treee6df9db7b9b7f819cb83ba8512fe515fb03d1c62
parent0dd6798a1adda03dcfa6304437faa8e62a193d9c
hw/loongarch/virt: Add reset support for kernel irqchip

When system reboot, interrupt controller is restored to initial
state. However if interrupt controller extioi/ipi/pch_pic is
emulated in kernel, it should notify kvm to do so. Here suspend
and restore API is used for reset, set initial state in qemu user
space and restore API is used to notify kvm to reload register
state.

Reviewed-by: Song Gao <gaosong@loongson.cn>
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Message-ID: <20250606063033.2557365-11-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
hw/intc/loongarch_extioi.c
hw/intc/loongarch_extioi_kvm.c
hw/intc/loongarch_ipi.c
hw/intc/loongarch_ipi_kvm.c
hw/intc/loongarch_pch_pic.c
hw/intc/loongarch_pic_kvm.c