target/arm/kvm64: max cpu: Enable SVE when available
commit14e99e0fbbc6b5d99ad99ab32183e1ffe40f8984
authorAndrew Jones <drjones@redhat.com>
Thu, 31 Oct 2019 14:27:31 +0000 (31 15:27 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 1 Nov 2019 20:40:59 +0000 (1 20:40 +0000)
treeeef01a1613958fc288d6bbe9288f959f2c57ec84
parent40b3fd21fb6567ade28007277eb653bc727aa415
target/arm/kvm64: max cpu: Enable SVE when available

Enable SVE in the KVM guest when the 'max' cpu type is configured
and KVM supports it. KVM SVE requires use of the new finalize
vcpu ioctl, so we add that now too. For starters SVE can only be
turned on or off, getting all vector lengths the host CPU supports
when on. We'll add the other SVE CPU properties in later patches.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
Reviewed-by: Beata Michalska <beata.michalska@linaro.org>
Message-id: 20191031142734.8590-7-drjones@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu64.c
target/arm/kvm.c
target/arm/kvm64.c
target/arm/kvm_arm.h
tests/arm-cpu-features.c