From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L5m5g-0004v7-Ad for qemu-devel@nongnu.org; Thu, 27 Nov 2008 13:59:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L5m5e-0004uj-VQ for qemu-devel@nongnu.org; Thu, 27 Nov 2008 13:59:51 -0500 Received: from [199.232.76.173] (port=42132 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5m5e-0004ug-Qd for qemu-devel@nongnu.org; Thu, 27 Nov 2008 13:59:50 -0500 Received: from ey-out-1920.google.com ([74.125.78.148]:38873) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L5m5e-0005J9-7P for qemu-devel@nongnu.org; Thu, 27 Nov 2008 13:59:50 -0500 Received: by ey-out-1920.google.com with SMTP id 4so473906eyk.4 for ; Thu, 27 Nov 2008 10:59:48 -0800 (PST) From: "Stanislav" References: <20081127110220.25353.83454.stgit@dhcp-1-237.tlv.redhat.com> <492E8FCC.2020203@gmx.net> <20081127123557.GB21985@redhat.com> In-Reply-To: <20081127123557.GB21985@redhat.com> Subject: RE: [Bochs-developers] [Qemu-devel] [PATCH v5 0/5] Support for S3 ACPI state (suspend to memory) in BIOS Date: Thu, 27 Nov 2008 20:59:38 +0200 Message-ID: <000301c950c2$4e2058b0$ea610a10$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Language: en-us Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Gleb Natapov' , qemu-devel@nongnu.org Cc: bochs-developers@lists.sourceforge.net In Bochs CPU doesn't have a cache memory emulated to use it as RAM but it is still possible to emulate cache-as-ram mode. The problem that cache-as-ram mode is very very very processor specific and implementation of it might be different between Intel and AMD for example. Which one to pick up ? Or might be better to invent some other mode especially for emulation reasons ? Stanislav -----Original Message----- From: Gleb Natapov [mailto:gleb@redhat.com] Sent: Thursday, November 27, 2008 2:36 PM To: qemu-devel@nongnu.org Cc: bochs-developers@lists.sourceforge.net Subject: Re: [Bochs-developers] [Qemu-devel] [PATCH v5 0/5] Support for S3 ACPI state (suspend to memory) in BIOS On Thu, Nov 27, 2008 at 01:17:16PM +0100, Carl-Daniel Hailfinger wrote: > Hi, > > On 27.11.2008 12:02, Gleb Natapov wrote: > > 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. > > > > I see the problem you're facing with the overwrite and it looks there > might be a cleaner solution: If you can lock the CPU cache so that > writes don't get passed through to RAM, you're free to use any area > (with a few contraints) for stack without having to worry about > clobbering memory contents there. > > That method is called Cache-as-RAM and I'm currently trying to implement > it in Qemu. I haven't looked into Bochs yet, but it should be doable > there as well. > It would be nice to not worry about stack location. We may try to use it when you changes will work in Qemu and BOCHS. -- Gleb. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ bochs-developers mailing list bochs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bochs-developers