[PATCH 01/12] KVM: arm64: Make ICC_*SGI*_EL1 undef in the absence of a vGICv3
Oliver Upton
oliver.upton at linux.dev
Wed Aug 21 09:53:47 PDT 2024
On Wed, Aug 21, 2024 at 11:59:52AM +0100, Marc Zyngier wrote:
> On Tue, 20 Aug 2024 22:46:30 +0100,
> Oliver Upton <oliver.upton at linux.dev> wrote:
> >
> > On Tue, Aug 20, 2024 at 11:03:38AM +0100, Marc Zyngier wrote:
> > > On a system with a GICv3, if a guest hasn't been configured with
> > > GICv3 and that the host is not capable of GICv2 emulation,
> > > a write to any of the ICC_*SGI*_EL1 registers is trapped to EL2.
> > >
> > > We therefore try to emulate the SGI access, only to hit a NULL
> > > pointer as no private interrupt is allocated (no GIC, remember?).
> > >
> > > The obvious fix is to give the guest what it deserves, in the
> > > shape of a UNDEF exception.
> > >
> > > Reported-by: Alexander Potapenko <glider at google.com>
> > > Signed-off-by: Marc Zyngier <maz at kernel.org>
> > > Cc: stable at vger.kernel.org
> >
> > LGTM, and just as an FYI I do plan on grabbing this for 6.11
>
> Great, thanks. Are you planning to route this via arm64, given that
> Paolo is away for a bit?
Yup, exactly that. I'll send the PR in the next day or two when I have
some time to kick the tires on everything.
--
Thanks,
Oliver
More information about the linux-arm-kernel
mailing list