From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CGKW9-0003QF-Dx for qemu-devel@nongnu.org; Sat, 09 Oct 2004 12:56:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGKW8-0003PU-Q7 for qemu-devel@nongnu.org; Sat, 09 Oct 2004 12:56:24 -0400 Received: from [129.104.30.34] (helo=a.mx.polytechnique.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CGKOw-0004Jf-MR for qemu-devel@nongnu.org; Sat, 09 Oct 2004 12:48:58 -0400 Message-ID: <416816AC.6060600@bellard.org> Date: Sat, 09 Oct 2004 18:49:48 +0200 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] [patch] make PCI work with Windows NT 4 guest References: <877jt7ru1v.fsf@benpfaff.org> In-Reply-To: <877jt7ru1v.fsf@benpfaff.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: blp@cs.stanford.edu, qemu-devel@nongnu.org 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: >