KVM: arm64: Refine _EL2 system register list that require trap reinjection
authorMiguel Luis <miguel.luis@oracle.com>
Mon, 23 Oct 2023 09:54:42 +0000 (10:54 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 25 Oct 2023 00:24:53 +0000 (00:24 +0000)
commit04cf5465055442c15c37bbedb1febe2d8f3a47be
tree07e139b8fae0d955682c6101adca3067eb8ba42e
parent41f6c9344713e6b895a77f2bdd596cf56d4cc197
KVM: arm64: Refine _EL2 system register list that require trap reinjection

Implement a fine grained approach in the _EL2 sysreg range instead of
the current wide cast trap. This ensures that we don't mistakenly
inject the wrong exception into the guest.

[maz: commit message massaging, dropped secure and AArch32 registers
      from the list]

Fixes: d0fc0a2519a6 ("KVM: arm64: nv: Add trap forwarding for HCR_EL2")
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Miguel Luis <miguel.luis@oracle.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231023095444.1587322-4-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/emulate-nested.c