static uint32_t kvm_arm_sve_get_vls(int fd)
{
- /* Only call this function if kvm_arm_sve_supported() returns true. */
uint64_t vls[KVM_ARM64_SVE_VLS_WORDS];
struct kvm_one_reg reg = {
.id = KVM_REG_ARM64_SVE_VLS,
* Ask for SVE if supported, so that we can query ID_AA64ZFR0,
* which is otherwise RAZ.
*/
- sve_supported = kvm_arm_sve_supported();
+ sve_supported = kvm_check_extension(kvm_state, KVM_CAP_ARM_SVE);
if (sve_supported) {
init.features[0] |= 1 << KVM_ARM_VCPU_SVE;
}
return kvm_check_extension(kvm_state, KVM_CAP_ARM_EL2);
}
-bool kvm_arm_sve_supported(void)
-{
- return kvm_check_extension(kvm_state, KVM_CAP_ARM_SVE);
-}
-
bool kvm_arm_mte_supported(void)
{
return kvm_check_extension(kvm_state, KVM_CAP_ARM_MTE);
cpu->kvm_init_features[0] |= 1 << KVM_ARM_VCPU_PMU_V3;
}
if (cpu_isar_feature(aa64_sve, cpu)) {
- assert(kvm_arm_sve_supported());
cpu->kvm_init_features[0] |= 1 << KVM_ARM_VCPU_SVE;
}
if (cpu_isar_feature(aa64_pauth, cpu)) {
*/
bool kvm_arm_pmu_supported(void);
-/**
- * kvm_arm_sve_supported:
- *
- * Returns true if KVM can enable SVE and false otherwise.
- */
-bool kvm_arm_sve_supported(void);
-
/**
* kvm_arm_mte_supported:
*
return false;
}
-static inline bool kvm_arm_sve_supported(void)
-{
- return false;
-}
-
static inline bool kvm_arm_mte_supported(void)
{
return false;