[PATCH 2/6] KVM: arm64: Handle all ID registers trapped for a protected VM
Reiji Watanabe
reijiw at google.com
Mon Jun 13 22:57:06 PDT 2022
On Thu, Jun 9, 2022 at 5:12 AM Will Deacon <will at kernel.org> wrote:
>
> From: Marc Zyngier <maz at kernel.org>
>
> A protected VM accessing ID_AA64ISAR2_EL1 gets punished with an UNDEF,
> while it really should only get a zero back if the register is not
> handled by the hypervisor emulation (as mandated by the architecture).
>
> Introduce all the missing ID registers (including the unallocated ones),
> and have them to return 0.
>
> Reported-by: Will Deacon <will at kernel.org>
> Signed-off-by: Marc Zyngier <maz at kernel.org>
Reviewed-by: Reiji Watanabe <reijiw at google.com>
More information about the linux-arm-kernel
mailing list