OSDN Git Service

KVM: arm64: pkvm: Make the ERR/ERX*_EL1 registers RAZ/WI
authorMarc Zyngier <maz@kernel.org>
Wed, 13 Oct 2021 12:03:38 +0000 (13:03 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 18 Oct 2021 15:57:08 +0000 (16:57 +0100)
commit8ffb41888334c1247bd9b4d6ff6c092a90e8d0b8
tree4963e6d4fa221cb1e444319723071f03d92559c6
parentce75916749b8cb5ec795f1157a5c426f6765a48c
KVM: arm64: pkvm: Make the ERR/ERX*_EL1 registers RAZ/WI

The ERR*/ERX* registers should be handled as RAZ/WI, and there
should be no need to involve EL1 for that.

Add a helper that handles such registers, and repaint the sysreg
table to declare these registers as RAZ/WI.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Link: https://lore.kernel.org/r/20211013120346.2926621-4-maz@kernel.org
arch/arm64/kvm/hyp/nvhe/sys_regs.c