KVM: arm64: Allow userspace to change ID_AA64ISAR{0-2}_EL1
authorOliver Upton <oliver.upton@linux.dev>
Tue, 3 Oct 2023 23:04:02 +0000 (23:04 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 4 Oct 2023 17:11:50 +0000 (17:11 +0000)
commit56d77aa8bdf527f3b767fa27a3f135769151c92d
tree9578b9864a2171fda390fa21d222c2ae1a1da9c5
parent9f9917bc71b08335819ea667d1e392424fb76450
KVM: arm64: Allow userspace to change ID_AA64ISAR{0-2}_EL1

Almost all of the features described by the ISA registers have no KVM
involvement. Allow userspace to change the value of these registers with
a couple exceptions:

 - MOPS is not writable as KVM does not currently virtualize FEAT_MOPS.

 - The PAuth fields are not writable as KVM requires both address and
   generic authentication be enabled.

Co-developed-by: Jing Zhang <jingzhangos@google.com>
Signed-off-by: Jing Zhang <jingzhangos@google.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231003230408.3405722-7-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/sys_regs.c