OSDN Git Service

KVM: arm64: Introduce vcpu_sve_vq() helper
authorMarc Zyngier <maz@kernel.org>
Fri, 12 Mar 2021 14:38:43 +0000 (14:38 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 18 Mar 2021 11:24:10 +0000 (11:24 +0000)
commit468f3477ef8bda1beeb91dd7f423c9bc248ac39d
treeb5886fa67d63f8cbddc17cf430611149b78be5d7
parent985d3a1beab543875e0c857ce263cad8233923bb
KVM: arm64: Introduce vcpu_sve_vq() helper

The KVM code contains a number of "sve_vq_from_vl(vcpu->arch.sve_max_vl)"
instances, and we are about to add more.

Introduce vcpu_sve_vq() as a shorthand for this expression.

Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/guest.c
arch/arm64/kvm/hyp/include/hyp/switch.h