KVM: arm64: Add a capability to advertise SVE support
authorDave Martin <Dave.Martin@arm.com>
Tue, 15 Jan 2019 12:21:22 +0000 (12:21 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 29 Mar 2019 14:41:54 +0000 (14:41 +0000)
commit555f3d03e7fb43a539050aee91337978da14a25e
tree8bca304bbe04015359c33f694684c498c79f6f7f
parent9a3cdf26e3363ec5460ebe20c508114fa63bcf26
KVM: arm64: Add a capability to advertise SVE support

To provide a uniform way to check for KVM SVE support amongst other
features, this patch adds a suitable capability KVM_CAP_ARM_SVE,
and reports it as present when SVE is available.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Julien Thierry <julien.thierry@arm.com>
Tested-by: zhang.lei <zhang.lei@jp.fujitsu.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/reset.c
include/uapi/linux/kvm.h