Re: [PATCH V2 3/4] irqchip/riscv-imsic: Move nr_guest_files to per-HART local config

Anup Patel <[email protected]>
Newsgroups org.infradead.lists.kvm-riscv,org.infradead.lists.linux-riscv,org.kernel.vger.kvm,org.kernel.vger.linux-kernel
Message-ID <CAAhSdy13JYzqf9mB4zw_NFe1jz9yu3p-JarzUPj7RVK1rmoiMw@mail.gmail.com>
Hi Thomas,

On Wed, May 6, 2026 at 1:42 AM Thomas Gleixner <[email protected]> wrote:
>
> On Sat, Apr 25 2026 at 00:59, [email protected] wrote:
> > From: "Guo Ren (Alibaba DAMO Academy)" <[email protected]>
> >
> > With the recent KVM AIA per-HART HGEI conversion, the global
> > nr_guest_files is no longer appropriate. Different HARTs in
> > heterogeneous SoCs may have different numbers of guest interrupt
> > files.
> >
> > Move `nr_guest_files` from `struct imsic_global_config` to
> > `struct imsic_local_config`, and compute it per-CPU in
> > imsic_setup_state() based on the actual MMIO guest file region size.
> >
> > Update the related comment to reflect that KVM now uses the
> > per-HART value.
> >
> > This eliminates the last global assumption about guest files and
> > completes the per-HART conversion series for RISC-V AIA/IMSIC.
> >
> > Signed-off-by: Guo Ren (Alibaba DAMO Academy) <[email protected]>
>
> Assuming this goes through the risc-v tree:
>
> Acked-by: Thomas Gleixner <[email protected]>

Thanks, I will take this series through KVM RISC-V tree.

Regards,
Anup

-- 
kvm-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kvm-riscv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.