public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Sascha Bischoff <Sascha.Bischoff@arm.com>
To: "maz@kernel.org" <maz@kernel.org>,
	"kvmarm@lists.linux.dev" <kvmarm@lists.linux.dev>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Cc: Joey Gouly <Joey.Gouly@arm.com>,
	"yuzenghui@huawei.com" <yuzenghui@huawei.com>,
	Suzuki Poulose <Suzuki.Poulose@arm.com>,
	"oupton@kernel.org" <oupton@kernel.org>,
	"broonie@kernel.org" <broonie@kernel.org>, nd <nd@arm.com>
Subject: Re: [PATCH 00/15] KVM: arm64: First batch of vgic-v5 related fixes
Date: Tue, 31 Mar 2026 16:34:32 +0000	[thread overview]
Message-ID: <cdc69fba5df6777dd1ce51de5b535ee459653fad.camel@arm.com> (raw)
In-Reply-To: <20260326153530.3981879-1-maz@kernel.org>

On Thu, 2026-03-26 at 15:35 +0000, Marc Zyngier wrote:
> Well, merging the first batch of vgic-v5 patches didn't go smoothly
> at
> all. We initially found a couple of regressions, but most of the crap
> was actually uncovered by everyone's new best friend (enemy?), the AI
> bot sitting behind sashiko.dev [1].
> 
> While not all of the remarks were valid, a bunch of them were
> actually
> extremely pertinent, and resulted in me frantically hacking away at
> the series. Hopefully the bot doesn't find even more issues in the
> fixes. Note that the first patch has already been posted and merged,
> and is only here for reference.
> 
> Note that given the amount of rework, I'm really in two minds between
> adding these patches on top, or pulling the whole series for another
> cycle. I guess time will tell.
> 
> [1]
> https://sashiko.dev/#/patchset/20260319154937.3619520-1-sascha.bischoff%40arm.com

Hi Marc,

Thanks so much for taking the time to go through things, and to fix up
these issues. Apologies for introducing them in the first place!

I'll spend some time going through the rest of the issues flagged at
[1] to see which others are true positives and provide fixes for them.

I've gone through this series, and am happy with everything except for
'KVM: arm64: vgic-v5: align priority comparison with other GICs', as
I've mentioned in the thread there. In summary, the `+ 1` is needed due
to GICv5's priority masking working a little different to that of
GICv[23].

When it comes to 'KVM: arm64: Remove evaluation of timer state in   
kvm_cpu_has_pending_timer()', I agree with the change - doing the check
in that location was definitely wrong. However, a similar check is
required on GICv5 due to the DVI mechanism being used on GICv5. I've
provided a potential (tested) fix in the thread there.

For all of these, with the exception of #9 ('KVM: arm64: vgic-v5: align
priority comparison with other GICs'), I'm happy for you to consider
them as:

Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>

Thanks,
Sascha

> 
> Marc Zyngier (15):
>   KVM: arm64: vgic: Don't reset cpuif/redist addresses at finalize
> time
>   KVM: arm64: Don't skip per-vcpu NV initialisation
>   arm64: Fix field references for ICH_PPI_DVIR[01]_EL2
>   KVM: arm64: Fix writeable mask for ID_AA64PFR2_EL1
>   KVM: arm64: Account for RESx bits in __compute_fgt()
>   KVM: arm64: vgic-v5: Hold config_lock while finalizing GICv5 PPIs
>   KVM: arm64: vgic-v5: Transfer edge pending state to
> ICH_PPI_PENDRx_EL2
>   KVM: arm64: vgic-v5: Cast vgic_apr to u32 to avoid undefined
>     behaviours
>   KVM: arm64: vgic-v5: align priority comparison with other GICs
>   KVM: arm64: vgic-v5: Correctly set dist->ready once initialised
>   KVM: arm64: Kill arch_timer_context::direct field
>   KVM: arm64: Remove evaluation of timer state in
>     kvm_cpu_has_pending_timer()
>   KVM: arm64: Move GICv5 timer PPI validation into
>     timer_irqs_are_valid()
>   KVM: arm64: Correctly plumb ID_AA64PFR2_EL1 into pkvm idreg
> handling
>   KVM: arm64: Don't advertises GICv3 in ID_PFR1_EL1 if AArch32 isn't
>     supported
> 
>  arch/arm64/kvm/arch_timer.c        | 32 +++++++++++++---------------
> --
>  arch/arm64/kvm/config.c            |  4 ++--
>  arch/arm64/kvm/hyp/nvhe/sys_regs.c |  2 +-
>  arch/arm64/kvm/sys_regs.c          | 20 +++++++++----------
>  arch/arm64/kvm/vgic/vgic-init.c    | 32 ++++++++++++++++++++--------
> --
>  arch/arm64/kvm/vgic/vgic-v5.c      | 24 +++++++++++++++++-----
>  arch/arm64/tools/sysreg            |  4 ++--
>  include/kvm/arm_arch_timer.h       |  3 ---
>  8 files changed, 70 insertions(+), 51 deletions(-)
> 


      parent reply	other threads:[~2026-03-31 16:35 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-26 15:35 [PATCH 00/15] KVM: arm64: First batch of vgic-v5 related fixes Marc Zyngier
2026-03-26 15:35 ` [PATCH 01/15] KVM: arm64: vgic: Don't reset cpuif/redist addresses at finalize time Marc Zyngier
2026-03-26 15:35 ` [PATCH 02/15] KVM: arm64: Don't skip per-vcpu NV initialisation Marc Zyngier
2026-03-26 15:35 ` [PATCH 03/15] arm64: Fix field references for ICH_PPI_DVIR[01]_EL2 Marc Zyngier
2026-03-26 15:35 ` [PATCH 04/15] KVM: arm64: Fix writeable mask for ID_AA64PFR2_EL1 Marc Zyngier
2026-03-26 15:35 ` [PATCH 05/15] KVM: arm64: Account for RESx bits in __compute_fgt() Marc Zyngier
2026-03-26 15:35 ` [PATCH 06/15] KVM: arm64: vgic-v5: Hold config_lock while finalizing GICv5 PPIs Marc Zyngier
2026-03-26 15:35 ` [PATCH 07/15] KVM: arm64: vgic-v5: Transfer edge pending state to ICH_PPI_PENDRx_EL2 Marc Zyngier
2026-03-26 15:35 ` [PATCH 08/15] KVM: arm64: vgic-v5: Cast vgic_apr to u32 to avoid undefined behaviours Marc Zyngier
2026-03-26 15:35 ` [PATCH 09/15] KVM: arm64: vgic-v5: align priority comparison with other GICs Marc Zyngier
2026-03-31 15:09   ` Sascha Bischoff
2026-03-31 17:18     ` Marc Zyngier
2026-04-01  8:18       ` Sascha Bischoff
2026-03-26 15:35 ` [PATCH 10/15] KVM: arm64: vgic-v5: Correctly set dist->ready once initialised Marc Zyngier
2026-03-26 15:35 ` [PATCH 11/15] KVM: arm64: Kill arch_timer_context::direct field Marc Zyngier
2026-03-26 15:35 ` [PATCH 12/15] KVM: arm64: Remove evaluation of timer state in kvm_cpu_has_pending_timer() Marc Zyngier
2026-03-31 15:44   ` Sascha Bischoff
2026-03-31 17:02     ` Marc Zyngier
2026-04-01  8:21       ` Sascha Bischoff
2026-03-26 15:35 ` [PATCH 13/15] KVM: arm64: Move GICv5 timer PPI validation into timer_irqs_are_valid() Marc Zyngier
2026-03-26 15:35 ` [PATCH 14/15] KVM: arm64: Correctly plumb ID_AA64PFR2_EL1 into pkvm idreg handling Marc Zyngier
2026-03-26 15:35 ` [PATCH 15/15] KVM: arm64: Don't advertises GICv3 in ID_PFR1_EL1 if AArch32 isn't supported Marc Zyngier
2026-03-30 17:05 ` [PATCH 00/15] KVM: arm64: First batch of vgic-v5 related fixes Mark Brown
2026-03-31 16:34 ` Sascha Bischoff [this message]

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=cdc69fba5df6777dd1ce51de5b535ee459653fad.camel@arm.com \
    --to=sascha.bischoff@arm.com \
    --cc=Joey.Gouly@arm.com \
    --cc=Suzuki.Poulose@arm.com \
    --cc=broonie@kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.linux.dev \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=maz@kernel.org \
    --cc=nd@arm.com \
    --cc=oupton@kernel.org \
    --cc=yuzenghui@huawei.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox