summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/include/kvm_util.h
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2021-12-27 15:48:07 +0300
committerMarc Zyngier <maz@kernel.org>2021-12-28 14:04:20 +0300
commit2f41a61c54fb6410202b2cc08be80ae9554d599d (patch)
tree6eb0db1d347ab0f6ae658133d51063646f18cbb1 /tools/testing/selftests/kvm/include/kvm_util.h
parent0303ffdb9ecffac4654b16bbf69ba84d131eb8b7 (diff)
downloadlinux-2f41a61c54fb6410202b2cc08be80ae9554d599d.tar.xz
KVM: selftests: arm64: Rework TCR_EL1 configuration
The current way we initialise TCR_EL1 is a bit cumbersome, as we mix setting TG0 and IPS in the same swtch statement. Split it into two statements (one for the base granule size, and another for the IPA size), allowing new modes to be added in a more elegant way. No functional change intended. Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Andrew Jones <drjones@redhat.com> Link: https://lore.kernel.org/r/20211227124809.1335409-5-maz@kernel.org
Diffstat (limited to 'tools/testing/selftests/kvm/include/kvm_util.h')
0 files changed, 0 insertions, 0 deletions