From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:43252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rkzo5-0003DY-KQ for qemu-devel@nongnu.org; Wed, 11 Jan 2012 10:09:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rkznz-00079a-CN for qemu-devel@nongnu.org; Wed, 11 Jan 2012 10:09:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:1030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rkznz-00074g-3u for qemu-devel@nongnu.org; Wed, 11 Jan 2012 10:09:35 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0BF98dY025206 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 11 Jan 2012 10:09:09 -0500 From: Gerd Hoffmann Date: Wed, 11 Jan 2012 16:08:59 +0100 Message-Id: <1326294541-15080-4-git-send-email-kraxel@redhat.com> In-Reply-To: <1326294541-15080-1-git-send-email-kraxel@redhat.com> References: <1326294541-15080-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [RFC PATCH 3/5] suspend: switch acpi s3 to new infrastructure. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Put the new bits into use by making acpi s3 suspend use them. This patch also makes the guest actually stay suspended instead of leaving suspend instantly, so it is useful for more than just testing whenever the suspend/resume cycle actually works. Signed-off-by: Gerd Hoffmann --- hw/acpi.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/hw/acpi.c b/hw/acpi.c index 9c35f2d..11d535d 100644 --- a/hw/acpi.c +++ b/hw/acpi.c @@ -348,8 +348,7 @@ void acpi_pm1_cnt_write(ACPIPM1EVT *pm1a, ACPIPM1CNT *pm1_cnt, uint16_t val) Pretend that resume was caused by power button */ pm1a->sts |= (ACPI_BITMASK_WAKE_STATUS | ACPI_BITMASK_POWER_BUTTON_STATUS); - qemu_system_reset_request(); - qemu_irq_raise(pm1_cnt->cmos_s3); + qemu_system_suspend_request(pm1_cnt->cmos_s3); default: break; } -- 1.7.1