qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [patch] make PCI work with Windows NT 4 guest


From: Fabrice Bellard
Subject: Re: [Qemu-devel] [patch] make PCI work with Windows NT 4 guest
Date: Sat, 09 Oct 2004 18:49:48 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

Applied.

Fabrice.

Ben Pfaff wrote:
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:







reply via email to

[Prev in Thread] Current Thread [Next in Thread]