From: guoren@kernel.org
To: anup@brainfault.org
Cc: alex@ghiti.fr, aou@eecs.berkeley.edu, atish.patra@linux.dev,
cp0613@linux.alibaba.com, fangyu.yu@linux.alibaba.com,
gaohan@iscas.ac.cn, guoren@kernel.org, inochiama@gmail.com,
kvm-riscv@lists.infradead.org, kvm@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org,
me@ziyao.cc, palmer@dabbelt.com, pjw@kernel.org, tglx@kernel.org
Subject: Re: Re: [PATCH 3/3] irqchip/riscv-imsic: Remove global nr_guest_files after KVM AIA per-HART conversion
Date: Sat, 25 Apr 2026 01:07:41 +0000 [thread overview]
Message-ID: <20260425010750.3322337-1-guoren@kernel.org> (raw)
In-Reply-To: <CAAhSdy2RBs15ndXbUMs=k7fw8CH_5+b9k=+o6SNzxpvb-YKDig@mail.gmail.com>
Hi Anup,
> On Wed, Apr 22, 2026 at 8:39 AM Guo Ren <guoren@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
--
kvm-riscv mailing list
kvm-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kvm-riscv
WARNING: multiple messages have this Message-ID (diff)
From: guoren@kernel.org
To: anup@brainfault.org
Cc: alex@ghiti.fr, aou@eecs.berkeley.edu, atish.patra@linux.dev,
cp0613@linux.alibaba.com, fangyu.yu@linux.alibaba.com,
gaohan@iscas.ac.cn, guoren@kernel.org, inochiama@gmail.com,
kvm-riscv@lists.infradead.org, kvm@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org,
me@ziyao.cc, palmer@dabbelt.com, pjw@kernel.org, tglx@kernel.org
Subject: Re: Re: [PATCH 3/3] irqchip/riscv-imsic: Remove global nr_guest_files after KVM AIA per-HART conversion
Date: Sat, 25 Apr 2026 01:07:41 +0000 [thread overview]
Message-ID: <20260425010750.3322337-1-guoren@kernel.org> (raw)
In-Reply-To: <CAAhSdy2RBs15ndXbUMs=k7fw8CH_5+b9k=+o6SNzxpvb-YKDig@mail.gmail.com>
Hi Anup,
> On Wed, Apr 22, 2026 at 8:39 AM Guo Ren <guoren@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
WARNING: multiple messages have this Message-ID (diff)
From: guoren@kernel.org
To: anup@brainfault.org
Cc: alex@ghiti.fr, aou@eecs.berkeley.edu, atish.patra@linux.dev,
cp0613@linux.alibaba.com, fangyu.yu@linux.alibaba.com,
gaohan@iscas.ac.cn, guoren@kernel.org, inochiama@gmail.com,
kvm-riscv@lists.infradead.org, kvm@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org,
me@ziyao.cc, palmer@dabbelt.com, pjw@kernel.org, tglx@kernel.org
Subject: Re: Re: [PATCH 3/3] irqchip/riscv-imsic: Remove global nr_guest_files after KVM AIA per-HART conversion
Date: Sat, 25 Apr 2026 01:07:41 +0000 [thread overview]
Message-ID: <20260425010750.3322337-1-guoren@kernel.org> (raw)
In-Reply-To: <CAAhSdy2RBs15ndXbUMs=k7fw8CH_5+b9k=+o6SNzxpvb-YKDig@mail.gmail.com>
Hi Anup,
> On Wed, Apr 22, 2026 at 8:39 AM Guo Ren <guoren@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
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2026-04-25 1:08 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-21 14:54 [PATCH 0/3] RISC-V: KVM: AIA: Convert HGEI management to fully per-HART guoren
2026-04-21 14:54 ` guoren
2026-04-21 14:54 ` guoren
2026-04-21 14:54 ` [PATCH 1/3] RISC-V: KVM: AIA: Make HGEI number and management fully per-CPU guoren
2026-04-21 14:54 ` guoren
2026-04-21 14:54 ` guoren
2026-04-21 14:54 ` [PATCH 2/3] RISC-V: KVM: AIA: Replace global HGEI count with simple enabled bool guoren
2026-04-21 14:54 ` guoren
2026-04-21 14:54 ` guoren
2026-04-21 14:54 ` [PATCH 3/3] irqchip/riscv-imsic: Remove global nr_guest_files after KVM AIA per-HART conversion guoren
2026-04-21 14:54 ` guoren
2026-04-21 14:54 ` guoren
2026-04-22 3:09 ` Guo Ren
2026-04-22 3:09 ` Guo Ren
2026-04-22 3:09 ` Guo Ren
2026-04-22 9:44 ` Anup Patel
2026-04-22 9:44 ` Anup Patel
2026-04-22 9:44 ` Anup Patel
2026-04-25 1:07 ` guoren [this message]
2026-04-25 1:07 ` guoren
2026-04-25 1:07 ` guoren
2026-04-23 4:20 ` Inochi Amaoto
2026-04-23 4:20 ` Inochi Amaoto
2026-04-23 4:20 ` Inochi Amaoto
2026-04-23 9:07 ` Guo Ren
2026-04-23 9:07 ` Guo Ren
2026-04-23 9:07 ` Guo Ren
-- strict thread matches above, loose matches on Subject: below --
2026-04-25 0:59 [PATCH V2 0/4] RISC-V: KVM: AIA: Convert HGEI management to fully per-HART guoren
2026-04-25 1:06 ` Re: [PATCH 3/3] irqchip/riscv-imsic: Remove global nr_guest_files after KVM AIA per-HART conversion guoren
2026-04-25 1:06 ` guoren
2026-04-25 1:06 ` guoren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260425010750.3322337-1-guoren@kernel.org \
--to=guoren@kernel.org \
--cc=alex@ghiti.fr \
--cc=anup@brainfault.org \
--cc=aou@eecs.berkeley.edu \
--cc=atish.patra@linux.dev \
--cc=cp0613@linux.alibaba.com \
--cc=fangyu.yu@linux.alibaba.com \
--cc=gaohan@iscas.ac.cn \
--cc=inochiama@gmail.com \
--cc=kvm-riscv@lists.infradead.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=me@ziyao.cc \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=tglx@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.