Skip to content

Commit

Permalink
target/arm: Use kvm_arm_sve_supported in kvm_arm_get_host_cpu_features
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rth7680 authored and pm215 committed Aug 1, 2022
1 parent 4e06b3f commit 0dd14e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/arm/kvm64.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 0dd14e9

Please sign in to comment.