[PATCH v1 0/2] hw/loongarch/virt: Set iocsr address space per-board rather percpu

Bibo Mao posted 2 patches 1 year, 11 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20231213041705.3331053-1-maobibo@loongson.cn
Maintainers: Song Gao <gaosong@loongson.cn>
There is a newer version of this series
hw/intc/loongarch_extioi.c         |   3 -
hw/intc/loongarch_ipi.c            | 184 ++++++++++++++++++-----------
hw/loongarch/virt.c                |  88 ++++++++++----
include/hw/intc/loongarch_extioi.h |   1 -
include/hw/intc/loongarch_ipi.h    |   3 +-
include/hw/loongarch/virt.h        |   3 +
target/loongarch/cpu.c             |  48 --------
target/loongarch/cpu.h             |   4 +-
target/loongarch/iocsr_helper.c    |  16 +--
9 files changed, 195 insertions(+), 155 deletions(-)
[PATCH v1 0/2] hw/loongarch/virt: Set iocsr address space per-board rather percpu
Posted by Bibo Mao 1 year, 11 months ago
On LoongArch system, there is iocsr address space simliar system io
address space on x86. And each cpu has its separate iocsr address space now,
with this patch, iocsr address space is changed with per-board, and
MemTxAttrs.requester_id is used to differentiate cpu cores.

Bibo Mao (2):
  hw/intc/loongarch_ipi: Use MemTxAttrs interface for ipi ops
  hw/loongarch/virt: Set iocsr address space per-board rather percpu

 hw/intc/loongarch_extioi.c         |   3 -
 hw/intc/loongarch_ipi.c            | 184 ++++++++++++++++++-----------
 hw/loongarch/virt.c                |  88 ++++++++++----
 include/hw/intc/loongarch_extioi.h |   1 -
 include/hw/intc/loongarch_ipi.h    |   3 +-
 include/hw/loongarch/virt.h        |   3 +
 target/loongarch/cpu.c             |  48 --------
 target/loongarch/cpu.h             |   4 +-
 target/loongarch/iocsr_helper.c    |  16 +--
 9 files changed, 195 insertions(+), 155 deletions(-)


base-commit: 9c74490bff6c8886a922008d0c9ce6cae70dd17e
-- 
2.39.3