From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6lfR-0005uV-Eo for qemu-devel@nongnu.org; Wed, 29 Aug 2012 13:03:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6lfQ-0003BN-2J for qemu-devel@nongnu.org; Wed, 29 Aug 2012 13:03:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6lfP-0003BG-QN for qemu-devel@nongnu.org; Wed, 29 Aug 2012 13:02:59 -0400 From: Igor Mammedov Date: Wed, 29 Aug 2012 19:02:42 +0200 Message-Id: <1346259767-991-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH 0/5 v2] 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. So replace it by notifiers and allow each implementation to have it's own way to notify guest. git repo for testing: last 5 commits https://github.com/imammedo/qemu/tree/cpu_as_device.WIP compile tested: target-list=x86_64-linux-user,x86_64-softmmu,sparc-softmmu,arm-softmmu runtime tested: x86_64-softmmu + win7 guest ps: reposting because I forgot to add qemu-devel address. 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 qemu_system_powerdown hw/acpi_piix4.c | 8 +++++--- hw/nseries.c | 14 +++++++++++++- hw/sun4m.c | 14 +++++++++++++- sysemu.h | 3 +-- vl.c | 18 ++++++++++++++---- 5 files changed, 46 insertions(+), 11 deletions(-) -- 1.7.11.4