Skip to contentSkip to conversation

kvm-s390: fix interrupt field widths

PATCH New [email protected] 1 participant 1 message Jun 5, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---

[diffstat]

 kvm_host.h |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

[diff]

arch/s390/include/asm/kvm_host.h +3 -2
Index: kvm/arch/s390/include/asm/kvm_host.h
===================================================================
@@ -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];
 };