Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3777594d authored by Carsten Otte's avatar Carsten Otte Committed by Avi Kivity
Browse files

KVM: s390: fix assumption for KVM_MAX_VCPUS



This patch fixes definition of the idle_mask and the local_int array
in kvm_s390_float_interrupt. Previous definition had 64 cpus max
hardcoded instead of using KVM_MAX_VCPUS.

Signed-off-by: default avatarCarsten Otte <cotte@de.ibm.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 58f9460b
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -220,8 +220,9 @@ struct kvm_s390_float_interrupt {
	struct list_head list;
	struct list_head list;
	atomic_t active;
	atomic_t active;
	int next_rr_cpu;
	int next_rr_cpu;
	unsigned long idle_mask [(64 + sizeof(long) - 1) / sizeof(long)];
	unsigned long idle_mask[(KVM_MAX_VCPUS + sizeof(long) - 1)
	struct kvm_s390_local_interrupt *local_int[64];
				/ sizeof(long)];
	struct kvm_s390_local_interrupt *local_int[KVM_MAX_VCPUS];
};
};