qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Sebastian Herbszt" <herbszt@gmx.de>
To: Kevin O'Connor <kevin@koconnor.net>
Cc: bochs-developers@lists.sourceforge.net, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [Bochs-developers] [PATCH v2 5/6] Don't use unreservedmemory inBIOS.
Date: Mon, 10 Nov 2008 20:55:51 +0100	[thread overview]
Message-ID: <F9B5C73AFD204C0DA52AD3E034CC7CB6@FSCPC> (raw)
In-Reply-To: <20081109194321.GA3821@morn.localdomain>

Kevin O'Connor wrote:
> On Sun, Nov 09, 2008 at 06:40:18PM +0100, Sebastian Herbszt wrote:
>> Kevin O'Connor wrote:
>> > Random note - I'm told that some option roms can relocate the EBDA.
>> > Setting the stack in the EBDA area will prevent that from working.
>> 
>> The option rom for the LSI SCSI controller (8xx_64.rom) relocates the
>> EBDA. It moves it from 0x9fc0 to 0x9f00.
> 
> Thanks Sebastian.
> 
> Do you know of any document or specification that details how the bios
> is supposed to handle this case and/or how an option rom should
> accomplish this?

Unfortunatelly not. I discovered this behaviour while playing with the
mentioned option rom.

> One of the questions I have, is how the bios should handle the e820
> map when this happens.  Currently, bochs bios always reserves 1K at
> 0x9fc0.  If the ebda is moved to 0x9f00, should bochs reserve 1K at
> 0x9f00 or 4K at 0x9f00?

Same problem with the simpler INT 12h interface. Currently it returns
the value in 0040h:0013h. This is the static value BASE_MEM_IN_K
which is 640 - EBDA_SIZE. EBDA_SIZE is the BIOS EBDA size.
Guess the value at 0040h:0013h has to be recalculated after option rom
scan based on the EBDA length field. The BIOS set's this to EBDA_SIZE
and if an option rom does relocate and resize it it should update that field.

So far the map reported by e820 does match INT 12h (both report 0x9fc0).
With this patch e820 reports 0x9f00 and INT 12h sticks to 0x9fc0. I am not
sure about the implications tho.

- Sebastian

  reply	other threads:[~2008-11-10 19:56 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-03  9:26 [Qemu-devel] [PATCH v2 0/6] Support for S3 ACPI state (suspend to memory) in BIOS Gleb Natapov
2008-11-03  9:26 ` [Qemu-devel] [PATCH v2 1/6] Move PIC initialization out of line to save space in post code area Gleb Natapov
2008-11-06 21:42   ` [Qemu-devel] Re: [Bochs-developers] [PATCH v2 1/6] Move PIC initialization out ofline " Sebastian Herbszt
2008-11-03  9:26 ` [Qemu-devel] [PATCH v2 2/6] Add S3 state to DSDT. Handle resume event in the BIOS Gleb Natapov
2008-11-06 23:03   ` [Qemu-devel] Re: [Bochs-developers] [PATCH v2 2/6] Add S3 state to DSDT. Handleresume " Sebastian Herbszt
2008-11-10  8:24     ` Gleb Natapov
2008-11-03  9:26 ` [Qemu-devel] [PATCH v2 3/6] Preserve memory content during SMM init Gleb Natapov
2008-11-03  9:26 ` [Qemu-devel] [PATCH v2 4/6] Execute rombios32 code from rom address 0xe0000 Gleb Natapov
2008-11-07 23:20   ` [Qemu-devel] Re: [Bochs-developers] [PATCH v2 4/6] Execute rombios32 code from romaddress 0xe0000 Sebastian Herbszt
2008-11-08  7:51     ` Gleb Natapov
2008-11-10 19:25       ` [Qemu-devel] Re: [Bochs-developers] [PATCH v2 4/6] Execute rombios32 code fromromaddress 0xe0000 Sebastian Herbszt
2008-11-10 21:18         ` Gleb Natapov
2008-11-03  9:26 ` [Qemu-devel] [PATCH v2 5/6] Don't use unreserved memory in BIOS Gleb Natapov
2008-11-07  0:25   ` [Qemu-devel] Re: [Bochs-developers] " Kevin O'Connor
2008-11-07  0:31     ` Michael Brown
2008-11-09 17:40     ` [Qemu-devel] Re: [Bochs-developers] [PATCH v2 5/6] Don't use unreservedmemory " Sebastian Herbszt
2008-11-09 19:43       ` Kevin O'Connor
2008-11-10 19:55         ` Sebastian Herbszt [this message]
2008-11-03  9:26 ` [Qemu-devel] [PATCH v2 6/6] Don't power down vga card on entering S3 state Gleb Natapov

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=F9B5C73AFD204C0DA52AD3E034CC7CB6@FSCPC \
    --to=herbszt@gmx.de \
    --cc=bochs-developers@lists.sourceforge.net \
    --cc=kevin@koconnor.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).