From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rv5GM-0004Su-Uh for qemu-devel@nongnu.org; Wed, 08 Feb 2012 06:00:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rv5GG-0007ow-UJ for qemu-devel@nongnu.org; Wed, 08 Feb 2012 06:00:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:31492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rv5GG-0007oJ-GB for qemu-devel@nongnu.org; Wed, 08 Feb 2012 06:00:28 -0500 From: Gerd Hoffmann Date: Wed, 8 Feb 2012 12:00:13 +0100 Message-Id: <1328698819-31269-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH v3 0/6] initial suspend support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com, Gerd Hoffmann This patch series makes suspend support in qemu alot more useful. Right now the guest can put itself into s3, but qemu will wakeup the guest instantly. With this patch series applied the guest will stay suspended instead and there are a few events which can kick the guest out of suspend state: A monitor command, ps/2 input, serial input, rtc. Not much yet, but it's a start with the low hanging fruits ;) Changes in v3: * Rename monitor command to 'system_wakeup'. * Fix tyops in documentation. Changes in v2: * Add a suspend notifier. * Replace the cmos_s3 qemu_irq with the notifier, zap a bunch of hackish cmos_s3 windup code (this touches xen-all.c, thus cc xen-devel). * Add rtc wakeup support. Gerd Hoffmann (6): suspend: add infrastructure suspend: switch acpi s3 to new infrastructure. suspend: add system_wakeup monitor command suspend: make ps/2 devices wakeup the guest suspend: make serial ports wakeup the guest. suspend: make rtc alarm wakeup the guest. hmp-commands.hx | 14 ++++++++++++++ hmp.c | 5 +++++ hmp.h | 1 + hw/acpi.c | 11 +---------- hw/acpi.h | 2 -- hw/acpi_piix4.c | 3 +-- hw/mc146818rtc.c | 17 +++++++++++++++++ hw/mips_malta.c | 2 +- hw/pc.c | 11 ----------- hw/pc.h | 3 +-- hw/pc_piix.c | 8 +------- hw/ps2.c | 6 ++++++ hw/serial.c | 6 ++++++ hw/vt82c686.c | 1 - qapi-schema.json | 11 +++++++++++ qmp-commands.hx | 21 +++++++++++++++++++++ qmp.c | 5 +++++ sysemu.h | 3 +++ vl.c | 28 ++++++++++++++++++++++++++++ xen-all.c | 11 ++++++----- 20 files changed, 128 insertions(+), 41 deletions(-) From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: [PATCH v3 0/6] initial suspend support Date: Wed, 8 Feb 2012 12:00:13 +0100 Message-ID: <1328698819-31269-1-git-send-email-kraxel@redhat.com> Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com, Gerd Hoffmann List-Id: xen-devel@lists.xenproject.org This patch series makes suspend support in qemu alot more useful. Right now the guest can put itself into s3, but qemu will wakeup the guest instantly. With this patch series applied the guest will stay suspended instead and there are a few events which can kick the guest out of suspend state: A monitor command, ps/2 input, serial input, rtc. Not much yet, but it's a start with the low hanging fruits ;) Changes in v3: * Rename monitor command to 'system_wakeup'. * Fix tyops in documentation. Changes in v2: * Add a suspend notifier. * Replace the cmos_s3 qemu_irq with the notifier, zap a bunch of hackish cmos_s3 windup code (this touches xen-all.c, thus cc xen-devel). * Add rtc wakeup support. Gerd Hoffmann (6): suspend: add infrastructure suspend: switch acpi s3 to new infrastructure. suspend: add system_wakeup monitor command suspend: make ps/2 devices wakeup the guest suspend: make serial ports wakeup the guest. suspend: make rtc alarm wakeup the guest. hmp-commands.hx | 14 ++++++++++++++ hmp.c | 5 +++++ hmp.h | 1 + hw/acpi.c | 11 +---------- hw/acpi.h | 2 -- hw/acpi_piix4.c | 3 +-- hw/mc146818rtc.c | 17 +++++++++++++++++ hw/mips_malta.c | 2 +- hw/pc.c | 11 ----------- hw/pc.h | 3 +-- hw/pc_piix.c | 8 +------- hw/ps2.c | 6 ++++++ hw/serial.c | 6 ++++++ hw/vt82c686.c | 1 - qapi-schema.json | 11 +++++++++++ qmp-commands.hx | 21 +++++++++++++++++++++ qmp.c | 5 +++++ sysemu.h | 3 +++ vl.c | 28 ++++++++++++++++++++++++++++ xen-all.c | 11 ++++++----- 20 files changed, 128 insertions(+), 41 deletions(-)