hw/loongarch/virt: Modify ipi as percpu device
commit78464f023b5407c636239de43cef864d76098009
authorSong Gao <gaosong@loongson.cn>
Thu, 6 Apr 2023 06:57:27 +0000 (6 14:57 +0800)
committerSong Gao <gaosong@loongson.cn>
Mon, 15 May 2023 11:09:33 +0000 (15 19:09 +0800)
treeb8078b71ea9a4dd419d8b2baca8c9fd034e02fa7
parent7318c62215ac1cf6b4d3c10b267e4cbc37a21f5a
hw/loongarch/virt: Modify ipi as percpu device

ipi is used to communicate between cpus, this patch modified
loongarch ipi device as percpu device, so that there are
2 MemoryRegions with ipi device, rather than 2*cpus
MemoryRegions, which may be large than QDEV_MAX_MMIO if
more cpus are added on loongarch virt machine.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20230512100421.1867848-2-gaosong@loongson.cn>
hw/intc/loongarch_ipi.c
hw/loongarch/virt.c
include/hw/intc/loongarch_ipi.h
include/hw/loongarch/virt.h