[PATCH v2 0/3] riscv: AIA: Add in-kernel irqchips save and restore function support

liu.xuemei1@zte.com.cn posted 3 patches 1 month, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260305171729291ZzfxmqZ48P2Tbz9TGCtST@zte.com.cn
Maintainers: Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <alistair.francis@wdc.com>, Weiwei Li <liwei1518@gmail.com>, Daniel Henrique Barboza <dbarboza@ventanamicro.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>, Peter Xu <peterx@redhat.com>, Fabiano Rosas <farosas@suse.de>
There is a newer version of this series
hw/intc/riscv_aplic.c         | 200 ++++++++++++++++++++++++++++------
hw/intc/riscv_imsic.c         | 171 ++++++++++++++++++++++++++---
include/hw/intc/riscv_aplic.h |   4 +
include/hw/intc/riscv_imsic.h |   3 +
include/qemu/bitops.h         |   9 +-
migration/vmstate-types.c     |   1 -
target/riscv/kvm/kvm-cpu.c    |   7 +-
target/riscv/kvm/kvm_riscv.h  |   1 +
8 files changed, 345 insertions(+), 51 deletions(-)
[PATCH v2 0/3] riscv: AIA: Add in-kernel irqchips save and restore function support
Posted by liu.xuemei1@zte.com.cn 1 month, 1 week ago
From: Xuemei Liu <liu.xuemei1@zte.com.cn>

This series adds support for in-kernel AIA irqchips save and restore
on RISC-V.

Changes in v2:
- Added the BITS_TO_U64S macro
- Added the nr_eix field and dynamically allocated the eie/eip arrays
- Replaced the CONFIG_32BIT macro with is_32bit boolean flag
- Link to v1: https://lore.kernel.org/qemu-devel/20260227180104794YvW9Rb2I_kAGzUruZL11Q@zte.com.cn/

Xuemei Liu (3):
  target/riscv/kvm: create kvm_riscv_aia_access_reg
  hw/intc/riscv_aplic: Add in-kernel aplic save and restore function
  hw/intc/imsic: Add in-kernel imsic save and restore function

 hw/intc/riscv_aplic.c         | 200 ++++++++++++++++++++++++++++------
 hw/intc/riscv_imsic.c         | 171 ++++++++++++++++++++++++++---
 include/hw/intc/riscv_aplic.h |   4 +
 include/hw/intc/riscv_imsic.h |   3 +
 include/qemu/bitops.h         |   9 +-
 migration/vmstate-types.c     |   1 -
 target/riscv/kvm/kvm-cpu.c    |   7 +-
 target/riscv/kvm/kvm_riscv.h  |   1 +
 8 files changed, 345 insertions(+), 51 deletions(-)

-- 
2.27.0