From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSpS8-0003Wk-FF for qemu-devel@nongnu.org; Wed, 26 Mar 2014 11:09:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSpS2-0006HN-Gt for qemu-devel@nongnu.org; Wed, 26 Mar 2014 11:09:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSpS2-0006HH-8O for qemu-devel@nongnu.org; Wed, 26 Mar 2014 11:09:10 -0400 Date: Wed, 26 Mar 2014 17:09:29 +0200 From: "Michael S. Tsirkin" Message-ID: <20140326150929.GA3511@redhat.com> References: <20140326064510.5518.72436.malonedeb@chaenomeles.canonical.com> <20140326064510.5518.72436.malonedeb@chaenomeles.canonical.com> <20140326103112.GA20219@redhat.com> <5332C7D2.3030901@redhat.com> <20140326125828.GA2192@redhat.com> <20140326144829.52f72b74@nial.usersys.redhat.com> <20140326145431.GA3269@redhat.com> <20140326150638.GR2057@otherpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140326150638.GR2057@otherpad.lan.raisama.net> Subject: Re: [Qemu-devel] [Bug 1297651] [NEW] KVM create a win7 guest with Qemu, it boots up fail List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: Igor Mammedov , Bug 1297651 <1297651@bugs.launchpad.net>, Laszlo Ersek , qemu-devel@nongnu.org, robert.hu@intel.com On Wed, Mar 26, 2014 at 12:06:38PM -0300, Eduardo Habkost wrote: > On Wed, Mar 26, 2014 at 04:54:31PM +0200, Michael S. Tsirkin wrote: > > On Wed, Mar 26, 2014 at 02:48:29PM +0100, Igor Mammedov wrote: > [...] > > > more clean would be to abort if CPON index (i.e. APIC ID) > > > is more than 255. That would affect small number of weird > > > topologies but sould be fine for most usecases. > > > > Any idea how to trigger this behaviour? > > Set sockets and/or cores to a 2^n+1 value. It will use n+1 bits for the > socket ID and core ID, making APIC ID larger than CPU index. You can get > a very large APIC ID if you use, for example: > > -smp 1,cores=17,threads=17,maxcpus=200 > > There's code to limit the maximum APIC ID and abort if it is too large, > already (so the above command-line will make QEMU abort). Okay so how do you make this package size exactly 256? > If we want to > limit APIC IDs to <255 instead of <256, we just need to change > ACPI_CPU_HOTPLUG_ID_LIMIT. > > -- > Eduardo