OSDN Git Service

target/arm: Set KVM_ARM_VCPU_SVE while probing the host
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 1 Aug 2022 15:21:18 +0000 (16:21 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 1 Aug 2022 15:21:18 +0000 (16:21 +0100)
commitb9e8d68a3982a470b1d42abda90fcd46c01b52bc
tree7576cc21412d42753c25ea43e70016402898a885
parent0dd14e9555225a2b1f56ccdab5eb99d1684869b9
target/arm: Set KVM_ARM_VCPU_SVE while probing the host

Because we weren't setting this flag, our probe of ID_AA64ZFR0
was always returning zero.  This also obviates the adjustment
of ID_AA64PFR0, which had sanitized the SVE field.

The effects of the bug are not visible, because the only thing that
ID_AA64ZFR0 is used for within qemu at present is tcg translation.
The other tests for SVE within KVM are via ID_AA64PFR0.SVE.

Reported-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220726045828.53697-3-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/kvm64.c