Received: from eggs.gnu.org ([2001:4830:134:3::10]:46542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJaG9-00006V-RU for qemu-devel@nongnu.org; Tue, 10 Sep 2013 22:34:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJaG5-00059f-50 for qemu-devel@nongnu.org; Tue, 10 Sep 2013 22:34:25 -0400 Received: from [222.73.24.84] (port=21324 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJaG4-000599-Ob for qemu-devel@nongnu.org; Tue, 10 Sep 2013 22:34:21 -0400 Message-ID: <1378866731.17949.6.camel@G08FNSTD131468> From: chenfan Date: Wed, 11 Sep 2013 10:32:11 +0800 In-Reply-To: <522F4038.3030401@redhat.com> References: <522F4038.3030401@redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [RFC qom-cpu v2 3/8] qmp: add 'cpu-del' command support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Igor Mammedov , qemu-devel@nongnu.org, Andreas =?ISO-8859-1?Q?F=E4rber?= On Tue, 2013-09-10 at 09:52 -0600, Eric Blake wrote: > On 09/10/2013 03:43 AM, Chen Fan wrote: > > Signed-off-by: Chen Fan > > --- > > hw/i386/pc.c | 5 +++++ > > hw/i386/pc_piix.c | 1 + > > include/hw/boards.h | 2 ++ > > include/hw/i386/pc.h | 1 + > > qapi-schema.json | 12 ++++++++++++ > > qmp-commands.hx | 23 +++++++++++++++++++++++ > > qmp.c | 9 +++++++++ > > 7 files changed, 53 insertions(+) > > > > diff --git a/hw/i386/pc.c b/hw/i386/pc.c > > index 0c313fe..3de9c51 100644 > > --- a/hw/i386/pc.c > > +++ b/hw/i386/pc.c > > @@ -957,6 +957,11 @@ void pc_hot_add_cpu(const int64_t id, Error **errp) > > pc_new_cpu(current_cpu_model, apic_id, icc_bridge, errp); > > } > > > > +void pc_hot_del_cpu(const int64_t id, Error **errp) > > +{ > > + /* TODO: hot remove vCPU. */ > > Even if you implement things later, it's better to at least set errp > here rather than having a command that silently does nothing but > succeeds. Or squash the two patches together so that you are providing > functionality at the time you expose the QMP. I should temporarily set some errp here in this patch. Thanks for you comment. > > Otherwise, looks fine from the QMP perspective. >