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>
Showing
- hw/intc/loongarch_ipi.c 16 additions, 28 deletionshw/intc/loongarch_ipi.c
- hw/loongarch/virt.c 6 additions, 6 deletionshw/loongarch/virt.c
- include/hw/intc/loongarch_ipi.h 4 additions, 6 deletionsinclude/hw/intc/loongarch_ipi.h
- include/hw/loongarch/virt.h 0 additions, 1 deletioninclude/hw/loongarch/virt.h
Please register or sign in to comment