From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkfJK-0003aK-DC for qemu-devel@nongnu.org; Thu, 25 Feb 2010 10:07:31 -0500 Received: from [199.232.76.173] (port=38079 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkfJJ-0003Zn-Nl for qemu-devel@nongnu.org; Thu, 25 Feb 2010 10:07:29 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NkfJI-0008RB-Qg for qemu-devel@nongnu.org; Thu, 25 Feb 2010 10:07:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57241) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NkfJI-0008R3-Aa for qemu-devel@nongnu.org; Thu, 25 Feb 2010 10:07:28 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1PF7Rqi016152 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 25 Feb 2010 10:07:27 -0500 Received: from localhost (vpn-9-86.rdu.redhat.com [10.11.9.86]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1PF7PjU031138 for ; Thu, 25 Feb 2010 10:07:26 -0500 From: Luiz Capitulino Date: Thu, 25 Feb 2010 12:07:00 -0300 Message-Id: <1267110422-25873-4-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1267110422-25873-1-git-send-email-lcapitulino@redhat.com> References: <1267110422-25873-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 3/5] QMP: Move RESET event into qemu_system_reset() List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Nothing will change as that function is currently only called by the main loop code, but it's the right place for the RESET event, as it's where the reset is actually performed. Signed-off-by: Luiz Capitulino --- vl.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 1735dd2..2c766c4 100644 --- a/vl.c +++ b/vl.c @@ -3140,6 +3140,8 @@ void qemu_system_reset(void) QTAILQ_FOREACH_SAFE(re, &reset_handlers, entry, nre) { re->func(re->opaque); } + + monitor_protocol_event(QEVENT_RESET, NULL); } void qemu_system_reset_request(void) @@ -4064,7 +4066,6 @@ static void main_loop(void) break; } if (qemu_reset_requested()) { - monitor_protocol_event(QEVENT_RESET, NULL); pause_all_vcpus(); qemu_system_reset(); resume_all_vcpus(); -- 1.7.0.GIT