Commit 8d8556fb authored by Marc Zyngier's avatar Marc Zyngier Committed by yanhaitao
Browse files

KVM: arm64: Introduce vcpu_sve_vq() helper

mainline inclusion
from mainline-v5.13-rc1
commit 468f3477
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8E73O
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=468f3477ef8bda1beeb91dd7f423c9bc248ac39d



-------------------------------------------------

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: default avatarWill Deacon <will@kernel.org>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Conflicts:
       correct undef function in switch.h
Signed-off-by: default avatarWang ShaoBo <bobo.shaobowang@huawei.com>
parent baaa76d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment