KVM: arm64: Condition HW AF updates on config option
authorOliver Upton <oliver.upton@linux.dev>
Fri, 2 Dec 2022 18:51:56 +0000 (18:51 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 12 Jan 2023 21:09:20 +0000 (21:09 +0000)
commit1dfc3e905089a0bcada268fb5691a605655e0319
tree4436672bf517e18605445cf9c4c80410e944a5b9
parentfc61f554e6947edd21cd84fb814f8418349a3569
KVM: arm64: Condition HW AF updates on config option

As it currently stands, KVM makes use of FEAT_HAFDBS unconditionally.
Use of the feature in the rest of the kernel is guarded by an associated
Kconfig option.

Align KVM with the rest of the kernel and only enable VTCR_HA when
ARM64_HW_AFDBM is enabled. This can be helpful for testing changes to
the stage-2 access fault path on Armv8.1+ implementations.

Link: https://lore.kernel.org/r/20221202185156.696189-7-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/pgtable.c