From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx7g4-0003F2-O6 for qemu-devel@nongnu.org; Thu, 02 Aug 2012 22:31:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sx7g3-0005zC-IF for qemu-devel@nongnu.org; Thu, 02 Aug 2012 22:31:48 -0400 Received: from ozlabs.org ([203.10.76.45]:35502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx7g3-0005uY-7c for qemu-devel@nongnu.org; Thu, 02 Aug 2012 22:31:47 -0400 Date: Fri, 3 Aug 2012 12:25:24 +1000 From: David Gibson Message-ID: <20120803022524.GF12733@truffala.fritz.box> References: <1343873409-8571-1-git-send-email-david@gibson.dropbear.id.au> <1343873409-8571-2-git-send-email-david@gibson.dropbear.id.au> <87sjc5l4p5.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <87sjc5l4p5.fsf@fimbulvetr.bsc.es> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/2] Allow QEMUMachine to override reset sequencing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Llu=EDs?= Vilanova Cc: qemu-devel@nongnu.org, anthony@codemonkey.ws, agraf@suse.de On Thu, Aug 02, 2012 at 06:00:06PM +0300, Llu=EDs Vilanova wrote: > David Gibson writes: > [...] > > diff --git a/vl.c b/vl.c > > index 9fea320..ac47a7c 100644 > > --- a/vl.c > > +++ b/vl.c > > @@ -1410,6 +1410,14 @@ void qemu_system_reset(bool report) > > cpu_synchronize_all_post_reset(); > > } > =20 > > +void qemu_system_reset(bool report) > > +{ > > + if (current_machine->reset) > > + current_machine->reset(report); > > + else > > + qemu_default_system_reset(report); > > +} > > + > > void qemu_system_reset_request(void) > > { > > if (no_reboot) { >=20 > Nitpick: you're missing the braces. Ah, oops, thank you. --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other= _ | _way_ _around_! http://www.ozlabs.org/~dgibson