Received: from eggs.gnu.org ([2001:4830:134:3::10]:36174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duhfO-0004UV-O1 for qemu-devel@nongnu.org; Wed, 20 Sep 2017 12:16:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duhfN-0005Bn-0T for qemu-devel@nongnu.org; Wed, 20 Sep 2017 12:16:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43492) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1duhfM-00059r-7R for qemu-devel@nongnu.org; Wed, 20 Sep 2017 12:16:00 -0400 References: <1505811353-29151-1-git-send-email-thuth@redhat.com> <84d1e5a0-141f-cd91-f62c-14fe58e73b4b@redhat.com> <54a1ab1c-4da0-ded1-c225-f50d4756b773@redhat.com> <99dd133d-239e-b53e-d258-7b1bde8639df@redhat.com> <05454839-2216-ee27-1cce-7d9899563806@redhat.com> From: David Hildenbrand Message-ID: <480fb9c2-cc8a-e4c5-235d-17e260132741@redhat.com> Date: Wed, 20 Sep 2017 18:15:49 +0200 MIME-Version: 1.0 In-Reply-To: <05454839-2216-ee27-1cce-7d9899563806@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH] qdev: Mark devices as non-hotpluggable by default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , Marcel Apfelbaum , Peter Maydell , Eduardo Habkost Cc: Stefano Stabellini , Xiao Guangrong , "Michael S. Tsirkin" , Cornelia Huck , QEMU Developers , Christian Borntraeger , Gerd Hoffmann , Paolo Bonzini , Anthony Perard , Igor Mammedov On 20.09.2017 18:10, Thomas Huth wrote: > On 20.09.2017 13:17, Thomas Huth wrote: >> On 20.09.2017 12:57, Marcel Apfelbaum wrote: >>> On 20/09/2017 13:07, Peter Maydell wrote: > [...] >>>> Is it possible to hack together some kind of test code that >>>> can give us a list of the devices compiled in that have >>>> hotpluggable enabled? Then we could compare before and >>>> after to see which devices we've changed. >>>> >>> >>> Eduardo came up with some cool automated tests not long ago. >>> Eduardo, can your tests help? >> >> You mean the scripts/device-crash-test script? That's only for >> cold-plugging ... but I could maybe use the device_add HMP test (see >> https://lists.gnu.org/archive/html/qemu-devel/2017-09/msg00817.html ) to >> exercise the hotplugging of all devices and add some debug code to >> qdev_device_add() to see which devices are dc->hotpluggable and have a >> hotplug handler at the same time... I'll give it a try. > > Ok, done that now, and it looks like I missed devices of type > TYPE_X86_CPU and TYPE_S390_CPU at least... Unlike the ppc64 CPUs, they > are not derived from TYPE_CPU_CORE, but from TYPE_CPU ... is that on > purpose? I thought hot-pluggable CPUs would need to be derived from > TYPE_CPU_CORE... well, maybe I just understood that wrong. > I'll send a new version of my patch. > > Thomas > Guess CORE was introduced for special thread handling on PPC. I am not aware of that hotplug restriction. And it seems to work just fine :) -- Thanks, David