kvm-s390: fix interrupt field widths
PATCH 1/1 kvm-s390: fix interrupt field widths
From: Christian Ehrhardt <[email protected]>
This code waants the same number as KVM_MAX_VCPUS but uses a hard coded 64 instead of the constant. This patch changes the field width definitions of the s390 specific interrupt handling to use the constant.
Signed-off-by Christian Ehrhardt <[email protected]>
---
[diffstat]
kvm_host.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
[diff]
arch/s390/include/asm/kvm_host.h +3 -2
@@ -203,8 +203,9 @@ struct kvm_s390_float_interrupt {struct list_head list;atomic_t active;int next_rr_cpu; -unsigned long idle_mask [(64 +sizeof (long ) -1 ) /sizeof (long )]; -struct kvm_s390_local_interrupt *local_int[64 ]; +unsigned long idle_mask[(KVM_MAX_VCPUS +sizeof (long ) -1 ) + /sizeof (long )]; +struct kvm_s390_local_interrupt *local_int[KVM_MAX_VCPUS ]; };