]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Reject ioctl access to FPSIMD V-regs on SVE vcpus
authorDave Martin <Dave.Martin@arm.com>
Tue, 11 Dec 2018 20:31:08 +0000 (20:31 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 29 Mar 2019 14:41:53 +0000 (14:41 +0000)
commit8c86dfe39d5d3c91fb201b67b72826f75bd2b655
treecebce0b7d6620f7ab07f91a0df128ba5d04dbbcc
parentbe25bbb392fad3a721d6d21b78639b60612b5439
KVM: arm64: Reject ioctl access to FPSIMD V-regs on SVE vcpus

In order to avoid the pointless complexity of maintaining two ioctl
register access views of the same data, this patch blocks ioctl
access to the FPSIMD V-registers on vcpus that support SVE.

This will make it more straightforward to add SVE register access
support.

Since SVE is an opt-in feature for userspace, this will not affect
existing users.

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/guest.c