From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L5edE-00015L-KO for qemu-devel@nongnu.org; Thu, 27 Nov 2008 06:02:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L5edC-000143-Lw for qemu-devel@nongnu.org; Thu, 27 Nov 2008 06:01:59 -0500 Received: from [199.232.76.173] (port=59153 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5edC-00013f-A8 for qemu-devel@nongnu.org; Thu, 27 Nov 2008 06:01:58 -0500 Received: from mx2.redhat.com ([66.187.237.31]:35605) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L5edB-0006Eh-2C for qemu-devel@nongnu.org; Thu, 27 Nov 2008 06:01:57 -0500 From: Gleb Natapov Date: Thu, 27 Nov 2008 13:02:20 +0200 Message-ID: <20081127110220.25353.83454.stgit@dhcp-1-237.tlv.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v5 0/5] Support for S3 ACPI state (suspend to memory) in BIOS Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bochs-developers@lists.sourceforge.net Cc: qemu-devel@nongnu.org Hello, This patch series adds S3 (suspend to RAM) ACPI state to BIOS. Most changes concern themselves with preventing BIOS from using memory locations available to a guest OS. Changelog: v2: - Don't disable SMM. - Jump to resume vector ASAP. Don't execute entire POST. - Use smp_cpus directly for smp initialization instead of special memory location. v3: - Stack pointer for rombios32 code depends on EBDA settings - Fix .data and .rodata* section overlap - Various small fixes v4: - If resume vector is NULL return to normal POST v5: - Call smm_init() at S3 resume boot - Shadow BIOS before looking for resume vector --- Gleb Natapov (5): Don't power down vga card on entering S3 state. Don't use unreserved memory in BIOS. Execute rombios32 code from rom address 0xe0000. Preserve memory content during SMM init. Add S3 state to DSDT. Handle resume event in the BIOS. bios/Makefile.in | 1 bios/acpi-dsdt.dsl | 45 +++++- bios/acpi-dsdt.hex | 376 +++++++++++++++++++++++++------------------------ bios/rombios.c | 77 ++++++++-- bios/rombios.h | 1 bios/rombios32.c | 132 ++++++++++++++--- bios/rombios32.ld | 10 + bios/rombios32start.S | 11 + 8 files changed, 414 insertions(+), 239 deletions(-) -- Gleb.