[PATCH 3/3] irqchip/riscv-imsic: Remove global nr_guest_files after KVM AIA per-HART conversion
guoren at kernel.org
guoren at kernel.org
Fri Apr 24 18:06:07 PDT 2026
Hi Anup,
> On Wed, Apr 22, 2026 at 8:39 AM Guo Ren <guoren at kernel.org> wrote:
> >
> > Hi all,
> >
> > This patch simply removed `nr_guest_files`, which is suboptimal. For
> > v2, I will keep `nr_guest_files` inside `struct imsic_local_config`
> > (per-HART) and compute the effective HGEI count in
> > `kvm_riscv_aia_enable()` as:
> >
> > min(hgctrl->nr_hgei, lc->nr_guest_files)
>
> Yes, I was going to comment the exact same thing. Good that you
> realized it early.
Thank you for the feedback. This is V2:
https://lore.kernel.org/kvm-riscv/20260425005916.3321811-1-guoren@kernel.org/
Best Regards
GUO Ren
More information about the linux-riscv
mailing list