KVM: arm64: Work out supported block level at compile time
authorOliver Upton <oliver.upton@linux.dev>
Fri, 7 Oct 2022 23:41:50 +0000 (23:41 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 9 Oct 2022 01:33:49 +0000 (02:33 +0100)
commit3b5c082bbfa20d9a57924edd655bbe63fe98ab06
tree24e67eb9a6e040a7bf11e1b01cffede20e330539
parentb302ca52ba8235ff0e18c0fa1fa92b51784aef6a
KVM: arm64: Work out supported block level at compile time

Work out the minimum page table level where KVM supports block mappings
at compile time. While at it, rewrite the comment around supported block
mappings to directly describe what KVM supports instead of phrasing in
terms of what it does not.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221007234151.461779-2-oliver.upton@linux.dev
arch/arm64/include/asm/kvm_pgtable.h