Received: from eggs.gnu.org ([2001:4830:134:3::10]:35044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3L4d-0001ud-MV for qemu-devel@nongnu.org; Mon, 30 Nov 2015 04:48:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a3L4X-00068N-En for qemu-devel@nongnu.org; Mon, 30 Nov 2015 04:48:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3L4X-00068F-9m for qemu-devel@nongnu.org; Mon, 30 Nov 2015 04:48:37 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id CF4DA341AC3 for ; Mon, 30 Nov 2015 09:48:36 +0000 (UTC) Date: Mon, 30 Nov 2015 17:48:27 +0800 From: Peter Xu Message-ID: <20151130094824.GB8728@pxdev.xzpeter.org> References: <20151130034732.GA12255@pxdev.xzpeter.org> <565C12EA.5090801@redhat.com> <87vb8jbzvb.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87vb8jbzvb.fsf@blackfin.pond.sub.org> Subject: Re: [Qemu-devel] question: about exec/poison.h List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Paolo Bonzini , qemu-devel@nongnu.org On Mon, Nov 30, 2015 at 10:28:08AM +0100, Markus Armbruster wrote: > Paolo Bonzini writes: > > > On 30/11/2015 04:47, Peter Xu wrote: > >> > >> I met one problem when trying to add a new public function in dump.h > >> named "dump_state_get_global" and using it in hmp.c. > > > > Don't do that. :) > > > > hmp.c functions should in general use the QMP commands as the base. In > > your case, hmp_info_dump should call qmp_query_dump. > > Yes. HMP commands need to be implemented on top of QMP commands, to > avoid a feature gap. Exception: HMP commands that make no sense for > QMP, like "print" or "cpu". I see. Thanks Markus! Peter