]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Rework detection of SVE, !VHE systems
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 6 Dec 2018 17:31:20 +0000 (17:31 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 10 Dec 2018 11:57:52 +0000 (11:57 +0000)
commitd1fea056cbaaa20ce3b606a03a24070a232f6385
tree377aa7ce12171c80a895841c4ecbf6ff69787916
parente17d24607b68edc5861d4f232867b700cb070a7b
KVM: arm64: Rework detection of SVE, !VHE systems

An SVE system is so far the only case where we mandate VHE. As we're
starting to grow this requirements, let's slightly rework the way we
deal with that situation, allowing for easy extension of this check.

Acked-by: Christoffer Dall <christoffer.dall@arm.com>
Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_host.h
virt/kvm/arm/arm.c