Re: [patch] kvm-userland - raise max vcpus to 256 for ia64

Jes Sorensen <[email protected]>
Newsgroups org.kernel.vger.kvm-ia64,org.kernel.vger.kvm
Message-ID <[email protected]>
Avi Kivity wrote:
> Zhang, Xiantao wrote:
>> Hi, Avi     Since kener side is ready, could you apply the patch from 
>> Jes?   
> 
> Needs changes since qemu changed in this area.  Please rebase.
> 

Hi,

Here's a rebase of the CPU number patch. Builds for me.

Cheers,
Jes
1100-qemu-nr-cpus.patch (text/plain, 844 B)
Raise max number of vcpus for ia64 to 256.

Signed-off-by: Jes Sorensen <[email protected]>

---
 libkvm/kvm-common.h |   11 +++++++----
 1 file changed, 7 insertions(+), 4 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.