From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jes Sorensen Subject: [patch] kvm-userland - raise max vcpus to 256 for ia64 Date: Thu, 16 Oct 2008 11:36:28 +0200 Message-ID: <48F70B1C.3090002@sgi.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010903040504080009070305" To: Avi Kivity , kvm@vger.kernel.org, kvm-ia64@vger.kernel.org Return-path: Received: from relay1.sgi.com ([192.48.171.29]:45720 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753372AbYJPJgc (ORCPT ); Thu, 16 Oct 2008 05:36:32 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This is a multi-part message in MIME format. --------------010903040504080009070305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------010903040504080009070305 Content-Type: text/plain; name="1100-qemu-nr-cpus.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="1100-qemu-nr-cpus.patch" Raise max number of vcpus for ia64 to 256. Signed-off-by: Jes Sorensen --- 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 --------------010903040504080009070305--