From: Richard Henderson Date: Mon, 1 Aug 2022 15:21:17 +0000 (+0100) Subject: target/arm: Use kvm_arm_sve_supported in kvm_arm_get_host_cpu_features X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0dd14e9555225a2b1f56ccdab5eb99d1684869b9;p=qemu.git 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 Message-id: 20220726045828.53697-2-richard.henderson@linaro.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c index d16d4ea250..bb1516b3d5 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) {