]> Gentwo Git Trees - linux/.git/commit
KVM: arm64: selftests: Initialize HCR_EL2
authorOliver Upton <oliver.upton@linux.dev>
Wed, 17 Sep 2025 21:20:41 +0000 (14:20 -0700)
committerMarc Zyngier <maz@kernel.org>
Wed, 24 Sep 2025 18:23:32 +0000 (19:23 +0100)
commit05c93cbe6653e7e77567962aa6533b618df5e19f
treeea4cbfbbf0362a4ff1fe8821567bfa5d13b19b30
parent7ae44d1cdad8a2483465373b9c9e91f0461ca9b2
KVM: arm64: selftests: Initialize HCR_EL2

Initialize HCR_EL2 such that EL2&0 is considered 'InHost', allowing the
use of (mostly) unmodified EL1 selftests at EL2.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
tools/testing/selftests/kvm/lib/arm64/processor.c