From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44045 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Old9V-0005Q3-Di for qemu-devel@nongnu.org; Wed, 18 Aug 2010 03:33:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Old9U-00069F-Il for qemu-devel@nongnu.org; Wed, 18 Aug 2010 03:33:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13483) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Old9U-000693-Bd for qemu-devel@nongnu.org; Wed, 18 Aug 2010 03:33:36 -0400 Message-ID: <4C6B8CC8.3040200@redhat.com> Date: Wed, 18 Aug 2010 10:33:28 +0300 From: Avi Kivity MIME-Version: 1.0 References: <4C67D844.5060306@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] Fix bug for vcpu hotplug List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Liu, Jinsong" Cc: "Yang, Sheng" , "qemu-devel@nongnu.org" , "kvm@vger.kernel.org" , "Li, Xin" On 08/18/2010 10:17 AM, Liu, Jinsong wrote: > During test, we found qemu-kvm has a bug result in guestos shutdown when vcpu hotadd. > This patch is to fix the bug, allow hotplug for sysbus qdev. > > --- a/hw/qdev.c > +++ b/hw/qdev.c > @@ -108,6 +108,7 @@ DeviceState *qdev_create(BusState *bus, const char *name) > if (!bus) { > if (!main_system_bus) { > main_system_bus = qbus_create(&system_bus_info, NULL, "main-system-bus"); > + main_system_bus->allow_hotplug = 1; > } > bus = main_system_bus; > } Looks reasonable to me. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.