public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm-s390: fix interrupt field widths
@ 2009-06-05 10:28 ehrhardt
  0 siblings, 0 replies; only message in thread
From: ehrhardt @ 2009-06-05 10:28 UTC (permalink / raw)
  To: kvm, avi; +Cc: ehrhardt, borntraeger, cotte, heiko.carstens, schwidefsky

From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>

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 <ehrhardt@linux.vnet.ibm.com>
---

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

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-05 10:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-05 10:28 [PATCH] kvm-s390: fix interrupt field widths ehrhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox