KVM: arm64: Mask FEAT_CCIDX
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 12 Jan 2023 02:38:51 +0000 (11:38 +0900)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 12 Jan 2023 21:07:43 +0000 (21:07 +0000)
commitbf48040cd9b0c4d93c635ce222014a594e4e93f2
tree825c53c3d47434dd83ec631eab39aa3f3fcf5fad
parent8cc6dedaff424d8a9bb6687a7b5763a5eeee125b
KVM: arm64: Mask FEAT_CCIDX

The CCSIDR access handler masks the associativity bits according to the
bit layout for processors without FEAT_CCIDX. KVM also assumes CCSIDR is
32-bit where it will be 64-bit if FEAT_CCIDX is enabled. Mask FEAT_CCIDX
so that these assumptions hold.

Suggested-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Link: https://lore.kernel.org/r/20230112023852.42012-7-akihiko.odaki@daynix.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/sys_regs.c