Received: from eggs.gnu.org ([2001:4830:134:3::10]:33583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Khx-0004Ph-6v for qemu-devel@nongnu.org; Wed, 16 Dec 2015 17:38:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9Kht-0004lu-0O for qemu-devel@nongnu.org; Wed, 16 Dec 2015 17:38:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Khs-0004lm-R4 for qemu-devel@nongnu.org; Wed, 16 Dec 2015 17:38:00 -0500 Date: Wed, 16 Dec 2015 23:37:53 +0100 From: Igor Mammedov Message-ID: <20151216233753.089930ff@igors-macbook-pro.local> In-Reply-To: <20151216182220.258dc9f0@igors-macbook-pro.local> References: <1449728144-6223-1-git-send-email-bharata@linux.vnet.ibm.com> <567180EA.5040709@suse.de> <20151216164441.270a1f72@igors-macbook-pro.local> <56718A02.1090701@suse.de> <20151216182220.258dc9f0@igors-macbook-pro.local> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC PATCH v0 0/9] Generic cpu-core device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?UTF-8?Q?F=C3=A4rber?= Cc: peter.maydell@linaro.org, ehabkost@redhat.com, qemu-devel@nongnu.org, agraf@suse.de, borntraeger@de.ibm.com, Bharata B Rao , pbonzini@redhat.com, david@gibson.dropbear.id.au On Wed, 16 Dec 2015 18:22:20 +0100 Igor Mammedov wrote: > On Wed, 16 Dec 2015 16:57:54 +0100 > Andreas F=C3=A4rber wrote: [...] > >=20 > > Attendees in Seattle said that thread-level hot-plug were dangerous > > for Linux guests due to assumptions in the (guest's) scheduler > > breaking for any incompletely filled cores or sockets. No one > > present > There is not such thing as cpu hotplug at socket level in x86 linux > so far. CPUs are plugged at logical(thread) cpu level, one at a time. > And ACPI spec does the same (describes logical CPUs) and hotplug > notification in guest handled per one logical cpu at a time. BTW: from my experience with CPU hotplug, I've had to fix only one topology+sched related bug in kernel but more bugs were related to fast CPU online/offline especially if host is over-committed. And plugging whole socket would lead to a rapid sequence of hotplugging CPUs which has been causing non deterministic kernel crash/lock up much more often than topology issues, there are still bugs to fix in that area.