From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jes Sorensen Subject: Re: [patch] kvm-userland - raise max vcpus to 256 for ia64 Date: Thu, 13 Nov 2008 14:37:59 +0100 Message-ID: <491C2DB7.1020206@sgi.com> References: <48F70B1C.3090002@sgi.com> <706158FABBBA044BAD4FE898A02E4BC2171F535B@pdsmsx503.ccr.corp.intel.com> <49118C8C.7060305@redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050206040805070500030609" Cc: "Zhang, Xiantao" , "kvm@vger.kernel.org" , "kvm-ia64@vger.kernel.org" To: Avi Kivity Return-path: Received: from relay1.sgi.com ([192.48.179.29]:36814 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751086AbYKMNiF (ORCPT ); Thu, 13 Nov 2008 08:38:05 -0500 In-Reply-To: <49118C8C.7060305@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: This is a multi-part message in MIME format. --------------050206040805070500030609 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------050206040805070500030609 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 +++++++---- 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 --------------050206040805070500030609--