@@ -214,6 +214,11 @@ bool kvm_arm_pmu_supported(void)
return kvm_check_extension(kvm_state, KVM_CAP_ARM_PMU_V3);
}
+bool kvm_arm_spe_supported(void)
+{
+ return kvm_check_extension(kvm_state, KVM_CAP_ARM_SPE_V1);
+}
+
int kvm_arm_get_max_vm_ipa_size(MachineState *ms)
{
KVMState *s = KVM_STATE(ms->accelerator);
@@ -283,6 +283,14 @@ bool kvm_arm_aarch32_supported(void);
*/
bool kvm_arm_pmu_supported(void);
+/**
+ * kvm_arm_spe_supported:
+ *
+ * Returns: true if the KVM VCPU can enable its SPE
+ * and false otherwise.
+ */
+bool kvm_arm_spe_supported(void);
+
/**
* kvm_arm_sve_supported:
*
@@ -366,6 +374,11 @@ static inline bool kvm_arm_pmu_supported(void)
return false;
}
+static inline bool kvm_arm_spe_supported(void)
+{
+ return false;
+}
+
static inline bool kvm_arm_sve_supported(void)
{
return false;