From: Peter <pjcreath+openbios@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Potential sparc32 MMU bug
Date: Fri, 16 Feb 2007 11:55:23 -0500 [thread overview]
Message-ID: <d40b362a0702160855u4613bc76l77cf962517358bac@mail.gmail.com> (raw)
While working on getting SunOS to boot under qemu, I ran into a very
odd bug, and I'm not sure whose fault it is.
The SunOS bootloader tries to install trap 0 by writing to the trap
table. The trap table is in the .text (read-only) section of the
OpenBIOS ROM.
The bug is that the write to the read-only section silently fails --
it doesn't cause an interrupt in the VM.
It looks like the VM believes all of the ROM is rwx (based on my
examination of cpu_sparc_handle_mmu_fault). I presume the write fails
because of Linux's memory protection (since the OpenBIOS ELF is
mmap'd). But I'm not sure why the disallowed write doesn't cause
_something_ to happen.
Should qemu be catching the failed write and passing it on to the VM?
Does qemu need to tell the VM's MMU which portions of the loaded ROM
are read-only? Or does OpenBIOS need to inform the VM's MMU that the
loaded .text section is read-only?
I presume it's something OpenBIOS should be doing, but that mailing
list is very very quiet, and I figured I'd make sure it wasn't an
underlying qemu bug.
How should qemu be handling this? What parts of qemu should I look at next?
If people are interested in booting SunOS under qemu, you may want to
check out my posting to the OpenBIOS mailing list, since most (if not
all) of the problems are OpenBIOS's.
next reply other threads:[~2007-02-16 16:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-16 16:55 Peter [this message]
2007-02-16 17:01 ` [Qemu-devel] Potential sparc32 MMU bug Paul Brook
2007-02-16 18:17 ` Peter
2007-02-16 18:25 ` Paul Brook
2007-02-16 18:45 ` Peter
2007-02-16 22:50 ` Peter Creath
2007-02-17 8:21 ` Blue Swirl
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=d40b362a0702160855u4613bc76l77cf962517358bac@mail.gmail.com \
--to=pjcreath+openbios@gmail.com \
--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).