Received: from eggs.gnu.org ([2001:4830:134:3::10]:60486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ah02c-0000hG-Lp for qemu-devel@nongnu.org; Fri, 18 Mar 2016 15:26:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ah02Z-0005Uw-TA for qemu-devel@nongnu.org; Fri, 18 Mar 2016 15:26:34 -0400 Date: Fri, 18 Mar 2016 16:26:28 -0300 From: Eduardo Habkost Message-ID: <20160318192628.GK2856@thinpad.lan.raisama.net> References: <1458048248-4605-1-git-send-email-imammedo@redhat.com> <1458048248-4605-2-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1458048248-4605-2-git-send-email-imammedo@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 1/2] QMP: add query-hotpluggable-cpus List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: mjrosato@linux.vnet.ibm.com, agraf@suse.de, pkrempa@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com, borntraeger@de.ibm.com, qemu-ppc@nongnu.org, bharata@linux.vnet.ibm.com, cornelia.huck@de.ibm.com, dgibson@redhat.com, afaerber@suse.de On Tue, Mar 15, 2016 at 02:24:07PM +0100, Igor Mammedov wrote: [...] > diff --git a/stubs/qmp_query_hotpluggable_cpus.c b/stubs/qmp_query_hotpluggable_cpus.c > new file mode 100644 > index 0000000..21a75a3 > --- /dev/null > +++ b/stubs/qmp_query_hotpluggable_cpus.c > @@ -0,0 +1,9 @@ > +#include "qemu/osdep.h" > +#include "qapi/qmp/qerror.h" > +#include "qmp-commands.h" > + > +HotpluggableCPUList *qmp_query_hotpluggable_cpus(Error **errp) > +{ > + error_setg(errp, QERR_FEATURE_DISABLED, "query-hotpluggable-cpus"); > + return NULL; > +} Sorry if this was discussed in previous threads that I haven't read, but: isn't this supposed to be a MachineClass method? I remember David saying once that we have the habit of assuming that a single QEMU binary can run only one family of machines that are very similar (like x86), but that's not always true. -- Eduardo