diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-08-01 16:21:17 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-08-01 16:21:17 +0100 |
commit | 0dd14e9555225a2b1f56ccdab5eb99d1684869b9 (patch) | |
tree | bb6a847ce45d9ab0088e310f066f30c328777b16 | |
parent | 4e06b3fc1b5e1ec03f22190eabe56891dc9c2236 (diff) | |
download | qemu-0dd14e9555225a2b1f56ccdab5eb99d1684869b9.zip qemu-0dd14e9555225a2b1f56ccdab5eb99d1684869b9.tar.gz qemu-0dd14e9555225a2b1f56ccdab5eb99d1684869b9.tar.bz2 |
target/arm: Use kvm_arm_sve_supported in kvm_arm_get_host_cpu_features
Indication for support for SVE will not depend on whether we
perform the query on the main kvm_state or the temp vcpu.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220726045828.53697-2-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | target/arm/kvm64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c index d16d4ea..bb1516b 100644 --- a/target/arm/kvm64.c +++ b/target/arm/kvm64.c @@ -675,7 +675,7 @@ bool kvm_arm_get_host_cpu_features(ARMHostCPUFeatures *ahcf) } } - sve_supported = ioctl(fdarray[0], KVM_CHECK_EXTENSION, KVM_CAP_ARM_SVE) > 0; + sve_supported = kvm_arm_sve_supported(); /* Add feature bits that can't appear until after VCPU init. */ if (sve_supported) { |