From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lrwkr-0004z8-9W for qemu-devel@nongnu.org; Thu, 09 Apr 2009 12:05:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lrwkm-0004uf-Mb for qemu-devel@nongnu.org; Thu, 09 Apr 2009 12:05:28 -0400 Received: from [199.232.76.173] (port=56317 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lrwkm-0004uQ-4z for qemu-devel@nongnu.org; Thu, 09 Apr 2009 12:05:24 -0400 Received: from mx20.gnu.org ([199.232.41.8]:16130) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lrwkl-00056q-Ln for qemu-devel@nongnu.org; Thu, 09 Apr 2009 12:05:23 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lrwkk-0006dW-9U for qemu-devel@nongnu.org; Thu, 09 Apr 2009 12:05:22 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH] limit guest cpus for kvm enabled builds Date: Thu, 9 Apr 2009 17:05:19 +0100 References: <49DDC4160200004800071C73@lucius.provo.novell.com> In-Reply-To: <49DDC4160200004800071C73@lucius.provo.novell.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904091705.20024.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Bruce Rogers On Thursday 09 April 2009, Bruce Rogers wrote: > The x86 kvm kernel module limits guest cpu count to 16, but the userspace > pc definition says 255 still. When invoking qemu-kvm with -smp > 16, it > prints some error messages, then segfaults. One of the mistakes is that > the error code from kvm_create_vcpu is ignored in ap_main_loop. You should fix that bug then. > This patch will enforce the limit at initialization time and avoid these > problems from the get go. No. We still want to support a decent number of cpus when -no-kvm is specified. Paul