From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9Mny-0007kp-5B for qemu-devel@nongnu.org; Wed, 05 Sep 2012 17:06:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9Mnx-0001hT-3i for qemu-devel@nongnu.org; Wed, 05 Sep 2012 17:06:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9Mnw-0001hP-Rz for qemu-devel@nongnu.org; Wed, 05 Sep 2012 17:06:33 -0400 From: Igor Mammedov Date: Wed, 5 Sep 2012 23:06:20 +0200 Message-Id: <1346879185-19299-1-git-send-email-imammedo@redhat.com> Subject: [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: peter.maydell@linaro.org, qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, mst@redhat.com, jan.kiszka@siemens.com, lcapitulino@redhat.com, blauwirbel@gmail.com, alex.williamson@redhat.com, kraxel@redhat.com, pbonzini@redhat.com 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(-) -- 1.7.11.4