All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Pfaff <blp@cs.stanford.edu>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [patch] make PCI work with Windows NT 4 guest
Date: Tue, 13 Jul 2004 23:18:04 -0700	[thread overview]
Message-ID: <877jt7ru1v.fsf@benpfaff.org> (raw)

This is the minimal patch that, combined with my previous patch,
allows a Windows NT 4 guest to boot with qemu's PCI support
enabled.  It seems that WNT4 is pretty grumpy about the DSC
("device seek complete") bit in the status register.  If we don't
set it on WIN_SPECIFY, WNT4 times out and gives up on the device.

diff -u -p -u -r1.26 ide.c
--- hw/ide.c	25 Jun 2004 14:54:19 -0000	1.26
+++ hw/ide.c	14 Jul 2004 06:15:40 -0000
@@ -1477,7 +1477,7 @@ static void ide_ioport_write(void *opaqu
         case WIN_SPECIFY:
         case WIN_RECAL:
             s->error = 0;
-            s->status = READY_STAT;
+            s->status = READY_STAT | SEEK_STAT;
             ide_set_irq(s);
             break;
         case WIN_SETMULT:

-- 
Ben Pfaff 
email: blp@cs.stanford.edu
web: http://benpfaff.org

             reply	other threads:[~2004-07-14  6:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-14  6:18 Ben Pfaff [this message]
2004-07-14 11:01 ` [Qemu-devel] [patch] make PCI work with Windows NT 4 guest Johannes Schindelin
2004-07-14 15:27   ` Ben Pfaff
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=877jt7ru1v.fsf@benpfaff.org \
    --to=blp@cs.stanford.edu \
    --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.