All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Stracke <francis+dated+1178545332.50cea7@thibault.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Thanks for QEMU!
Date: Wed, 08 Nov 2006 09:44:08 -0500	[thread overview]
Message-ID: <1162997048.4168.10.camel@client-30.office.endeca.com> (raw)

Hetz Ben Hamo wrote:


> Perhaps you could submit your printf's so other people can learn from
> them please?

Well, most of them I no longer have; they slowed things down, so I
deleted them once I had the problems fixed.  Besides, they were probably
too idiosyncratic to help other people much.

However, there is one change that I'd recommend adding into the QEMU
distribution: in target-i386/helper2.c, in cpu_x86_handle_mmu_fault(),
right before the line starting "pde_addr = ((env->cr[3] & ~0xfff)", I
added a sanity check:

if (env->cr[3] & 0xfff) {
  fprintf(logfile,"Warning: page directory is not page-aligned.\n");
}

This gives a warning if the OS is using an invalid address for the page
directory.  You might want to put it inside #ifdef DEBUG_MMU, or
something.

-- 
/============================================================\
|John Stracke        | http://www.thibault.org |HTML OK      |
|Francois Thibault   |=======================================|
|East Kingdom        |Rope is rope, and string is string, and|
|francis@thibault.org|never the twine shall meet.            |
\============================================================/

             reply	other threads:[~2006-11-08 14:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-08 14:44 John Stracke [this message]
     [not found] <200611081431.28389.hoan@wanadoo.fr>
2006-11-08 14:34 ` [Qemu-devel] Thanks for QEMU! John Stracke
  -- strict thread matches above, loose matches on Subject: below --
2006-11-07 15:09 John Stracke
2006-11-07 17:42 ` Hetz Ben Hamo
2006-11-08  9:30 ` wangji

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=1162997048.4168.10.camel@client-30.office.endeca.com \
    --to=francis+dated+1178545332.50cea7@thibault.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.