]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit33e5f4e50917c2508c05898f391a971b15eec93e
tree377aa7ce12171c80a895841c4ecbf6ff69787916
parentc987876a80e7bcb98a839f10dca9ce7fda4feced
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