From: Ben Pfaff <blp@cs.stanford.edu>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [patch] make PCI work with Windows NT 4 guest
Date: Wed, 14 Jul 2004 08:27:47 -0700 [thread overview]
Message-ID: <87d62ytxqk.fsf@benpfaff.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0407141300150.9484@wgmdd8.biozentrum.uni-wuerzburg.de> (Johannes Schindelin's message of "Wed, 14 Jul 2004 13:01:59 +0200 (CEST)")
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> great work! Out of curiosity: how did you manage to find out what is going
> wrong? (may help others to debug similarly complicated situations...)
To tell that the lack of CMOS was a problem, I tried the WNT4
install under both Bochs (in which WNT4 worked) and qemu and set
up both to dump out IDE port reads and writes in the same trace
format. Then I `diff'ed the outputs. There were lots of
differences so I adjusted the qemu state machine until the traces
were bug-for-bug identical. It still didn't work so I knew
something else had to be the problem, and eventually I thought of
the CMOS.
I did about the same thing for figuring out how to make PCI work.
I turned on lots of debug print statements, then ran installs
with PCI enabled and disabled, and looked at the `diff' between
the debug print outputs. There was a particular point in the PCI
trace where the guest was sitting in a loop polling the IDE
status register until it timed out, so I figured that it was
looking for a bit that wasn't on. Adding the "seek complete" bit
fixed it.
--
"...I've forgotten where I was going with this,
but you can bet it was scathing."
--DesiredUsername
next prev parent reply other threads:[~2004-07-14 15:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-14 6:18 [Qemu-devel] [patch] make PCI work with Windows NT 4 guest Ben Pfaff
2004-07-14 11:01 ` Johannes Schindelin
2004-07-14 15:27 ` Ben Pfaff [this message]
2004-07-15 10:03 ` [Qemu-devel] Win98 network & cirrus logic success Johannes Schindelin
2004-07-15 18:45 ` [Qemu-devel] [patch] make PCI work with Windows NT 4 guest Hetz Ben Hamo
2004-10-09 16:49 ` Fabrice Bellard
2004-10-09 19:22 ` Magnus Damm
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=87d62ytxqk.fsf@benpfaff.org \
--to=blp@cs.stanford.edu \
--cc=Johannes.Schindelin@gmx.de \
--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.