Marc Zyngier 3e6245ebe7 KVM: arm64: Make ICC_*SGI*_EL1 undef in the absence of a vGICv3
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@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240820100349.3544850-2-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
2024-08-22 08:08:37 +00:00
..
2024-05-23 19:40:26 -07:00
2024-07-10 14:23:38 +02:00
2024-07-25 10:42:22 -07:00
2024-07-23 14:32:21 -07:00
2024-07-23 14:32:21 -07:00
2024-07-27 12:46:16 -07:00
2024-07-23 11:57:52 -07:00
2024-07-25 10:42:22 -07:00