From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TE0Bv-0004Me-Iu for qemu-devel@nongnu.org; Tue, 18 Sep 2012 11:58:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TE0Bm-0004Si-4M for qemu-devel@nongnu.org; Tue, 18 Sep 2012 11:58:27 -0400 Date: Tue, 18 Sep 2012 17:58:14 +0200 From: Igor Mammedov Message-ID: <20120918175814.1aa12a4c@nial.usersys.redhat.com> In-Reply-To: <1346879185-19299-1-git-send-email-imammedo@redhat.com> References: <1346879185-19299-1-git-send-email-imammedo@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/5 v3] convert system_powerdown command to notifiers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, aliguori@us.ibm.com On Wed, 5 Sep 2012 23:06:20 +0200 Igor Mammedov wrote: ping > global variable qemu_system_powerdown in sysemu.h is the only dep for > qemu_irq and qemu_rise_irq is not a generic way to signal guest that it > should shutdown. > > replace it by notifiers and allow each implementation to have it's own way > to notify guest. > > git repo for testing: > https://github.com/imammedo/qemu/tree/shutdown_notifier.v3 > > compile tested: > target-list=x86_64-linux-user,x86_64-softmmu,sparc-softmmu,arm-softmmu > runtime tested: > x86_64-softmmu + win7 guest > > v3-v2: > - fixed bisectably issues of series > - make series independed of cpu_as_device series > > Igor Mammedov (5): > Introduce powerdown_notifiers > acpi: use notifier for signaling guest system_powerdown command > target-arm: use notifier for signaling guest system_powerdown command > target-sparc: use notifier for signaling guest system_powerdown > command > Cleanup unused global var qemu_system_powerdown > > hw/acpi_piix4.c | 8 +++++--- > hw/nseries.c | 14 +++++++++++++- > hw/sun4m.c | 14 +++++++++++++- > sysemu.h | 2 +- > vl.c | 18 ++++++++++++++---- > 5 files changed, 46 insertions(+), 10 deletions(-) >