On 6/4/21 8:52 AM, Alex Bennée wrote:
+void kvm_sve_get_supported_lens(ARMCPU *cpu, unsigned long *kvm_supported)
+{
+/* Collect the set of vector lengths supported by KVM. */
+bitmap_zero(kvm_supported, ARM_MAX_VQ);
+
+if (kvm_arm_sve_supported()) {
+kvm_arm_sve_get_vls(CPU(c
On 6/4/21 8:52 AM, Alex Bennée wrote:
DECLARE_BITMAP(kvm_supported, ARM_MAX_VQ);
-DECLARE_BITMAP(tmp, ARM_MAX_VQ);
-uint32_t vq, max_vq = 0;
-
-/* Collect the set of vector lengths supported by KVM. */
-bitmap_zero(kvm_supported, ARM_MAX_VQ);
-if (kvm_enabled() && kvm_ar
From: Claudio Fontana
put the KVM-specific and TCG-specific functionality
in the respective subdirectories kvm/ and tcg/
Signed-off-by: Claudio Fontana
Signed-off-by: Alex Bennée
---
target/arm/kvm/kvm-sve.h | 28 +++
target/arm/tcg/tcg-sve.h | 24 ++
target/arm/cpu-sve.c