KVM: arm64: Add a visibility bit to ignore user writes
authorOliver Upton <oliver.upton@linux.dev>
Tue, 13 Sep 2022 09:44:38 +0000 (09:44 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 14 Sep 2022 10:36:16 +0000 (11:36 +0100)
commit4de06e4c1dc949c35c16e4423b4ccd735264b0a9
tree812686b95d1f043868174f6ba0ee61caa3a19472
parent5d9a718b64e428a40939806873ecf16f072008b3
KVM: arm64: Add a visibility bit to ignore user writes

We're about to ignore writes to AArch32 ID registers on AArch64-only
systems. Add a bit to indicate a register is handled as write ignore
when accessed from userspace.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220913094441.3957645-6-oliver.upton@linux.dev
arch/arm64/kvm/sys_regs.c
arch/arm64/kvm/sys_regs.h