public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] kvm-userland - raise max vcpus to 256 for ia64
@ 2008-10-16  9:36 Jes Sorensen
  2008-10-16 10:10 ` Zhang, Xiantao
  2008-11-03  8:50 ` Zhang, Xiantao
  0 siblings, 2 replies; 6+ messages in thread
From: Jes Sorensen @ 2008-10-16  9:36 UTC (permalink / raw)
  To: Avi Kivity, kvm, kvm-ia64

[-- Attachment #1: Type: text/plain, Size: 144 bytes --]

Hi,

We can now boot upto 60 vcpus on ia64, but thats just the beginning.
Would you please add this one to the kvm-userland tree.

Thanks,
Jes


[-- Attachment #2: 1100-qemu-nr-cpus.patch --]
[-- Type: text/plain, Size: 1223 bytes --]

Raise max number of vcpus for ia64 to 256.

Signed-off-by: Jes Sorensen <jes@sgi.com>

---
 libkvm/kvm-common.h |   11 +++++++----
 qemu/vl.c           |    2 +-
 2 files changed, 8 insertions(+), 5 deletions(-)

Index: kvm-userspace.git/libkvm/kvm-common.h
===================================================================
--- kvm-userspace.git.orig/libkvm/kvm-common.h
+++ kvm-userspace.git/libkvm/kvm-common.h
@@ -18,13 +18,16 @@
 
 /* FIXME: share this number with kvm */
 /* FIXME: or dynamically alloc/realloc regions */
-#ifndef __s390__
-#define KVM_MAX_NUM_MEM_REGIONS 32u
-#define MAX_VCPUS 16
-#else
+#ifdef __s390__
 #define KVM_MAX_NUM_MEM_REGIONS 1u
 #define MAX_VCPUS 64
 #define LIBKVM_S390_ORIGIN (0UL)
+#elif __ia64__
+#define KVM_MAX_NUM_MEM_REGIONS 32u
+#define MAX_VCPUS 256
+#else
+#define KVM_MAX_NUM_MEM_REGIONS 32u
+#define MAX_VCPUS 16
 #endif
 
 
Index: kvm-userspace.git/qemu/vl.c
===================================================================
--- kvm-userspace.git.orig/qemu/vl.c
+++ kvm-userspace.git/qemu/vl.c
@@ -224,7 +224,7 @@
 #elif defined(TARGET_I386)
 #define MAX_CPUS 255
 #elif defined(TARGET_IA64)
-#define MAX_CPUS 4
+#define MAX_CPUS 256
 #else
 #define MAX_CPUS 1
 #endif

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-11-13 13:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-16  9:36 [patch] kvm-userland - raise max vcpus to 256 for ia64 Jes Sorensen
2008-10-16 10:10 ` Zhang, Xiantao
2008-11-03  8:50 ` Zhang, Xiantao
2008-11-05 12:07   ` Avi Kivity
2008-11-13 13:37     ` Jes Sorensen
2008-11-13 13:54       ` Avi Kivity

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