]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita1272fe51225ed474f529f4b8d90a0a4a9b26641
tree812686b95d1f043868174f6ba0ee61caa3a19472
parentc3876bbb216a62c63924a448868e9a5326df5637
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