diff options
author | Carsten Otte <cotte@de.ibm.com> | 2012-01-04 04:25:28 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-03-05 07:52:20 -0500 |
commit | 3777594d5a75b704312544a59094beecd820e12b (patch) | |
tree | b1accac26590b51870be2c5125013edd625f3ef4 /arch/s390 | |
parent | 58f9460ba1cc9de67e6591bfd08dccded43d27bd (diff) |
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: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/include/asm/kvm_host.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/s390/include/asm/kvm_host.h b/arch/s390/include/asm/kvm_host.h index b0c235cb6ad5..e34fb2ba76c1 100644 --- a/arch/s390/include/asm/kvm_host.h +++ b/arch/s390/include/asm/kvm_host.h | |||
@@ -220,8 +220,9 @@ struct kvm_s390_float_interrupt { | |||
220 | struct list_head list; | 220 | struct list_head list; |
221 | atomic_t active; | 221 | atomic_t active; |
222 | int next_rr_cpu; | 222 | int next_rr_cpu; |
223 | unsigned long idle_mask [(64 + sizeof(long) - 1) / sizeof(long)]; | 223 | unsigned long idle_mask[(KVM_MAX_VCPUS + sizeof(long) - 1) |
224 | struct kvm_s390_local_interrupt *local_int[64]; | 224 | / sizeof(long)]; |
225 | struct kvm_s390_local_interrupt *local_int[KVM_MAX_VCPUS]; | ||
225 | }; | 226 | }; |
226 | 227 | ||
227 | 228 | ||