summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kvm/reset.c
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2020-06-15 22:03:30 +0200
committerMarc Zyngier <maz@kernel.org>2020-06-22 12:42:50 +0200
commit11ac16a4290b72efa8328cb144b727f3cbbdfa6a (patch)
treef62037ce0c8d03ca86024806ad751c0d5c0314dd /arch/arm64/kvm/reset.c
parentKVM: arm64: Check HCR_EL2 instead of shadow copy to swap PtrAuth registers (diff)
downloadlinux-11ac16a4290b72efa8328cb144b727f3cbbdfa6a.tar.xz
linux-11ac16a4290b72efa8328cb144b727f3cbbdfa6a.zip
KVM: arm64: Simplify PtrAuth alternative patching
We currently decide to execute the PtrAuth save/restore code based on a set of branches that evaluate as (ARM64_HAS_ADDRESS_AUTH_ARCH || ARM64_HAS_ADDRESS_AUTH_IMP_DEF). This can be easily replaced by a much simpler test as the ARM64_HAS_ADDRESS_AUTH capability is exactly this expression. Suggested-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/kvm/reset.c')
0 files changed, 0 insertions, 0 deletions