Received: from eggs.gnu.org ([208.118.235.92]:54426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swwt0-00022E-NB for qemu-devel@nongnu.org; Thu, 02 Aug 2012 11:00:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Swwsu-0005ow-Ga for qemu-devel@nongnu.org; Thu, 02 Aug 2012 11:00:26 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:51452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Swwsu-0005ob-5i for qemu-devel@nongnu.org; Thu, 02 Aug 2012 11:00:20 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <1343873409-8571-1-git-send-email-david@gibson.dropbear.id.au> <1343873409-8571-2-git-send-email-david@gibson.dropbear.id.au> Date: Thu, 02 Aug 2012 18:00:06 +0300 In-Reply-To: <1343873409-8571-2-git-send-email-david@gibson.dropbear.id.au> (David Gibson's message of "Thu, 2 Aug 2012 12:10:08 +1000") Message-ID: <87sjc5l4p5.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain 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: David Gibson Cc: qemu-devel@nongnu.org, anthony@codemonkey.ws, agraf@suse.de 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(); > } > +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) { Nitpick: you're missing the braces. Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth