From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [Qemu-devel] Re: [PATCH] Fix bug for vcpu hotplug Date: Thu, 19 Aug 2010 10:24:18 -0500 Message-ID: <4C6D4CA2.5060500@codemonkey.ws> References: <4C67D844.5060306@redhat.com> <4C6B8CC8.3040200@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Liu, Jinsong" , "Yang, Sheng" , "qemu-devel@nongnu.org" , "kvm@vger.kernel.org" , "Li, Xin" To: Avi Kivity Return-path: Received: from mail-gy0-f174.google.com ([209.85.160.174]:48648 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754080Ab0HSPY2 (ORCPT ); Thu, 19 Aug 2010 11:24:28 -0400 Received: by gyd8 with SMTP id 8so768080gyd.19 for ; Thu, 19 Aug 2010 08:24:27 -0700 (PDT) In-Reply-To: <4C6B8CC8.3040200@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 08/18/2010 02:33 AM, Avi Kivity wrote: > 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. Not really to me. SysBus does not support hotplugging and CPU hot plug shouldn't have anything to do with qdev hotplug. Can you explain a bit more why this is needed? Regards, Anthony Liguori