qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
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
Date: Thu, 04 Dec 2008 11:04:39 +0100	[thread overview]
Message-ID: <4937AB37.2020207@gmx.net> (raw)
In-Reply-To: <000c01c9525a$a3325990$e9970cb0$@com>

On 29.11.2008 20:42, Stanislav wrote:
> Again, I mean Bochs doesn't emulate caches. So what do you mean by catchall
> emulation ?
> To allocate kind of dummy 32K block and use it when CRAM mode and delete
> immediately after ?
>   

Yes, exactly. However, the size of the dummy block depends on your cache
size. And I have seen Intel CPUs (with 2 MB cache) which used up to 1056
kB of cache during CAR mode.

> About the way you enable CRAM mode - it would be nice if we agree to use a
> protocol which real hardware needs.
>   

Yes. That is my goal. The problem is that CPU documentation is often a
bit ambiguous about how CAR mode is enabled. AFAIK the common
denominator is the CARsize <= Cachesize setting. That is really unusual
for any point in time (during OS execution) except for the short time
where CAR is enabled in the firmware/BIOS.

> I still hope to be able to execute real hardware BIOSes on Bochs for example
>   

That would be cool. The RAM controller emulation may need some tweaking,
though.

Regards,
Carl-Daniel

> Stanislav
>
> -----Original Message-----
> From: Carl-Daniel Hailfinger [mailto:c-d.hailfinger.devel.2006@gmx.net] 
> Sent: Thursday, November 27, 2008 11:05 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 27.11.2008 21:04, Stanislav wrote:
>   
>> What is the catchall emulation ? Could you explain/point me some docs ?
>>   
>>     
>
> Sorry, it was only a brief sentence. Basically, if the total size of all
> cached areas is not bigger than CPU cache size, no cache line will be
> evicted and the cache behaves like Cache-as-RAM (CAR). That should be
> doable in Bochs, KVM and Qemu.
>
> Or were you looking for BIOS code to enable CAR? That is indeed
> processor specific, but any of the existing CAR implementations will
> work if the catchall emulation is used.
>
> Regards,
> Carl-Daniel
>
>   


-- 
http://www.hailfinger.org/

      reply	other threads:[~2008-12-04 10:04 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-27 11:02 [Qemu-devel] [PATCH v5 0/5] Support for S3 ACPI state (suspend to memory) in BIOS Gleb Natapov
2008-11-27 11:02 ` [Qemu-devel] [PATCH v5 1/5] Add S3 state to DSDT. Handle resume event in the BIOS Gleb Natapov
2008-12-07  2:57   ` [Qemu-devel] Re: [Bochs-developers] " Kevin O'Connor
2008-12-07  9:20     ` Gleb Natapov
2008-12-07 15:10       ` Kevin O'Connor
2008-12-07 16:31         ` Gleb Natapov
2008-12-09 22:26       ` [Qemu-devel] Re: [Bochs-developers] [PATCH v5 1/5] Add S3 state to DSDT.Handle " Sebastian Herbszt
2008-12-10  0:06         ` Kevin O'Connor
2008-12-10 10:22           ` Gleb Natapov
2008-12-09 13:38     ` [Qemu-devel] Re: [Bochs-developers] [PATCH v5 1/5] Add S3 state to DSDT. Handle " Gleb Natapov
2008-12-09 15:12       ` [Qemu-devel] " Stanislav
2008-12-14 22:02       ` [Qemu-devel] Re: [Bochs-developers] [PATCH v5 1/5] Add S3 state to DSDT.Handle " Sebastian Herbszt
2008-11-27 11:02 ` [Qemu-devel] [PATCH v5 2/5] Preserve memory content during SMM init Gleb Natapov
2008-11-27 11:02 ` [Qemu-devel] [PATCH v5 3/5] Execute rombios32 code from rom address 0xe0000 Gleb Natapov
2008-11-27 11:02 ` [Qemu-devel] [PATCH v5 4/5] Don't use unreserved memory in BIOS Gleb Natapov
2008-11-27 11:02 ` [Qemu-devel] [PATCH v5 5/5] Don't power down vga card on entering S3 state Gleb Natapov
2008-11-27 12:17 ` [Qemu-devel] [PATCH v5 0/5] Support for S3 ACPI state (suspend to memory) in BIOS Carl-Daniel Hailfinger
2008-11-27 12:35   ` Gleb Natapov
2008-11-27 18:59     ` [Bochs-developers] " Stanislav
2008-11-27 19:07       ` Carl-Daniel Hailfinger
2008-11-27 20:04         ` Stanislav
2008-11-27 21:04           ` Carl-Daniel Hailfinger
2008-11-29 19:42             ` Stanislav
2008-12-04 10:04               ` Carl-Daniel Hailfinger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4937AB37.2020207@gmx.net \
    --to=c-d.hailfinger.devel.2006@gmx.net \
    --cc=bochs-developers@lists.sourceforge.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).