Received: from eggs.gnu.org ([208.118.235.92]:35847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfeoG-00089X-CZ for qemu-devel@nongnu.org; Mon, 03 Dec 2012 17:48:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfeoF-0003IY-Du for qemu-devel@nongnu.org; Mon, 03 Dec 2012 17:48:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:26693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tfekx-0001v9-42 for qemu-devel@nongnu.org; Mon, 03 Dec 2012 17:44:55 -0500 Date: Mon, 3 Dec 2012 20:46:29 -0200 From: Eduardo Habkost Message-ID: <20121203224629.GI4255@otherpad.lan.raisama.net> References: <1354303642-4283-1-git-send-email-ehabkost@redhat.com> <1354303642-4283-6-git-send-email-ehabkost@redhat.com> <20121203222003.4363c53c@thinkpad.mammed.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121203222003.4363c53c@thinkpad.mammed.net> Subject: Re: [Qemu-devel] [RFC 05/10] qdev: move reset handler list from vl.c to hw/reset.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: qemu-devel@nongnu.org, Anthony Liguori , Andreas =?iso-8859-1?Q?F=E4rber?= On Mon, Dec 03, 2012 at 10:20:03PM +0100, Igor Mammedov wrote: > On Fri, 30 Nov 2012 17:27:17 -0200 > Eduardo Habkost wrote: > > > The core qdev code uses the reset handler list from vl.c, and > > currently *-user has some hacks to make CPU reset work. > > > > This moves qemu_register_reset(), qemu_unregister_reset() and > > qemu_devices_reset() to a new file, hw/reset.c, that can be used by qdev > > and by *-user. > > > > Signed-off-by: Eduardo Habkost > > --- > [...] > > diff --git a/hw/reset.c b/hw/reset.c > > new file mode 100644 > > index 0000000..5e34b80 > > --- /dev/null > > +++ b/hw/reset.c > > @@ -0,0 +1,43 @@ > > +#include "hw/reset.h" > > +#include "qlist.h" > missing #include for g_malloc/g_free > > [...] > > diff --git a/xen-all.c b/xen-all.c > > index 046cc2a..7d2a79f 100644 > > --- a/xen-all.c > > +++ b/xen-all.c > > @@ -14,6 +14,7 @@ > > #include "hw/pc.h" > > #include "hw/xen_common.h" > > #include "hw/xen_backend.h" > > +#include "hw/reset.h" > > #include "qmp-commands.h" > > > > #include "range.h" > > -- > > 1.7.11.7 > > > > > Since you are going not include reset.o in *-user: > although dedicated reset.c is nice to have perhaps you can drop reset.c /it's > not very related to this series topic/ altogether to minimize scope of review > and limit patch only to reset.h and qemu_register_reset(), > qemu_unregister_reset() and qemu_devices_reset() stubs for *-user. I plan to remove this patch on the next respin of the series, and add qemu_[un]register_reset() stubs to *-user instead. When I sent this version of the series, I was still planning to include reset.o in *-user. -- Eduardo