summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorDave Martin2018-09-28 15:39:21 +0200
committerMarc Zyngier2019-03-29 15:41:54 +0100
commitead9e430c0fba1a7aa6d948a626c48ef9c4aa069 (patch)
treef4c9958e218eee29e80cd3e7de44699cf2e0d44f /virt
parentKVM: arm64: Enumerate SVE register indices for KVM_GET_REG_LIST (diff)
downloadkernel-qcow2-linux-ead9e430c0fba1a7aa6d948a626c48ef9c4aa069.tar.gz
kernel-qcow2-linux-ead9e430c0fba1a7aa6d948a626c48ef9c4aa069.tar.xz
kernel-qcow2-linux-ead9e430c0fba1a7aa6d948a626c48ef9c4aa069.zip
arm64/sve: In-kernel vector length availability query interface
KVM will need to interrogate the set of SVE vector lengths available on the system. This patch exposes the relevant bits to the kernel, along with a sve_vq_available() helper to check whether a particular vector length is supported. __vq_to_bit() and __bit_to_vq() are not intended for use outside these functions: now that these are exposed outside fpsimd.c, they are prefixed with __ in order to provide an extra hint that they are not intended for general-purpose use. 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>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions