target/arm/kvm: host cpu: Add support for sve<N> properties
commit87014c6b3660ce54a57cb72171d6f93306b0c44a
authorAndrew Jones <drjones@redhat.com>
Thu, 31 Oct 2019 14:27:34 +0000 (31 15:27 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 1 Nov 2019 20:40:59 +0000 (1 20:40 +0000)
treeb6d4c629d56e000b1245ca7f47db35128367d051
parent6fa8a37949d912bb463caa0c139ff0ca88c6ec33
target/arm/kvm: host cpu: Add support for sve<N> properties

Allow cpu 'host' to enable SVE when it's available, unless the
user chooses to disable it with the added 'sve=off' cpu property.
Also give the user the ability to select vector lengths with the
sve<N> properties. We don't adopt 'max' cpu's other sve property,
sve-max-vq, because that property is difficult to use with KVM.
That property assumes all vector lengths in the range from 1 up
to and including the specified maximum length are supported, but
there may be optional lengths not supported by the host in that
range. With KVM one must be more specific when enabling vector
lengths.

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