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

liu.xuemei1@zte.com.cn posted 3 patches 3 weeks, 5 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260312112336983jY95IEDTtzVrPbyk-taP3@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>
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         |   1 +
migration/vmstate-types.c     |   1 -
target/riscv/kvm/kvm-cpu.c    |   7 +-
target/riscv/kvm/kvm_riscv.h  |   1 +
8 files changed, 341 insertions(+), 47 deletions(-)
[PATCH v3 0/3] riscv: AIA: Add in-kernel irqchips save and restore function support
Posted by liu.xuemei1@zte.com.cn 3 weeks, 5 days 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 v3:
- Removed unnecessary changes in bitops.h
- Link to v2: https://lore.kernel.org/qemu-devel/20260305171729291ZzfxmqZ48P2Tbz9TGCtST@zte.com.cn/

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         |   1 +
 migration/vmstate-types.c     |   1 -
 target/riscv/kvm/kvm-cpu.c    |   7 +-
 target/riscv/kvm/kvm_riscv.h  |   1 +
 8 files changed, 341 insertions(+), 47 deletions(-)

-- 
2.27.0