From: Kevin O'Connor <kevin@koconnor.net>
To: Gerhard Wiesinger <lists@wiesinger.com>
Cc: seabios@seabios.org, qemu-devel@nongnu.org, Roy Tam <roytam@gmail.com>
Subject: Re: [SeaBIOS] [Qemu-devel] QEMU regression problems
Date: Wed, 21 Apr 2010 19:02:03 -0400 [thread overview]
Message-ID: <20100421230203.GA5193@morn.localdomain> (raw)
In-Reply-To: <alpine.LFD.2.00.1004212054150.22296@bbs.intern>
On Wed, Apr 21, 2010 at 09:16:54PM +0200, Gerhard Wiesinger wrote:
> On Mon, 19 Apr 2010, Kevin O'Connor wrote:
> >SeaBIOS will lock parts of ram from 0xc0000-0xfffff so that the option
> >roms aren't writable. I wonder if that is confusing qemm when it
> >tries to locate the ebda into that area.
>From your initial log, it looks like QEMM tried to relocate the ebda
to CEB5h-D035h. However, the seabios log shows the last rom
(genroms/vapic.bin) at 0xce800-0xd0a00. So, SeaBIOS would have locked
that ram. Can you see if the patch below shows a different result for
you?
> Is the area from 0xc0000-0xfffff only read only when an option ROM
> is installed at some part of the memory area (e.g. option ROM at
> 0xD0000 to 0xDFFFF only 0xD0000 to 0xDFFFF is made read only) or the
> comple area is made read only?
SeaBIOS will lock only those areas it deployed option roms into.
However, the chipset only allows locking of 16K chunks - so SeaBIOS
will round up the option rom storage to the nearest 16K block. For
example, should the last rom end at 0xd0a00, then SeaBIOS would lock
up to 0xd4000.
-Kevin
--- a/src/shadow.c
+++ b/src/shadow.c
@@ -104,6 +104,8 @@ make_bios_readonly(void)
// Flush any pending writes before locking memory.
wbinvd();
+ dprintf(1, "RomEnd=%x\n", RomEnd);
+#if 0
// Write protect roms from 0xc0000-0xf0000
int i;
for (i=0; i<6; i++) {
@@ -115,6 +117,7 @@ make_bios_readonly(void)
}
pci_config_writeb(bdf, 0x5a + i, 0x11);
}
+#endif
// Write protect 0xf0000-0x100000
pci_config_writeb(bdf, 0x59, 0x10);
next prev parent reply other threads:[~2010-04-21 23:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-12 5:31 [Qemu-devel] QEMU regression problems Gerhard Wiesinger
2010-04-13 6:26 ` Roy Tam
2010-04-14 1:16 ` [SeaBIOS] " Kevin O'Connor
2010-04-19 6:19 ` Gerhard Wiesinger
2010-04-20 1:26 ` Kevin O'Connor
2010-04-21 19:16 ` Gerhard Wiesinger
2010-04-21 23:02 ` Kevin O'Connor [this message]
2010-04-22 6:16 ` Gerhard Wiesinger
2011-02-18 7:12 ` [Qemu-devel] Re: QEMU regression problems - Update FPU Gerhard Wiesinger
2011-02-23 7:09 ` Gerhard Wiesinger
2011-02-23 8:16 ` Peter Maydell
2011-02-23 9:45 ` Laurent Desnogues
2011-02-23 19:04 ` Aurelien Jarno
2011-02-24 11:10 ` Paolo Bonzini
2011-02-24 11:21 ` Laurent Desnogues
2011-02-24 7:03 ` Gerhard Wiesinger
2011-02-24 7:31 ` Aurelien Jarno
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=20100421230203.GA5193@morn.localdomain \
--to=kevin@koconnor.net \
--cc=lists@wiesinger.com \
--cc=qemu-devel@nongnu.org \
--cc=roytam@gmail.com \
--cc=seabios@seabios.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).