KVM: arm64: Add a vcpu flag to control SVE visibility for the guest
authorDave Martin <Dave.Martin@arm.com>
Fri, 28 Sep 2018 13:39:12 +0000 (14:39 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 29 Mar 2019 14:41:52 +0000 (14:41 +0000)
commit1765edbab16e3dc73367bda04e45337cea3e51a0
treeac049c39dd9d23992d0e35c1aab25b0ea0c8a178
parent0495067420f352a0b8ed37ee412d7dd8e7b95c61
KVM: arm64: Add a vcpu flag to control SVE visibility for the guest

Since SVE will be enabled or disabled on a per-vcpu basis, a flag
is needed in order to track which vcpus have it enabled.

This patch adds a suitable flag and a helper for checking it.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: zhang.lei <zhang.lei@jp.fujitsu.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/kvm_host.h