From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bkd8R-0003eI-KI for qemu-devel@nongnu.org; Wed, 14 Jul 2004 02:20:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bkd8R-0003e6-1T for qemu-devel@nongnu.org; Wed, 14 Jul 2004 02:20:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bkd8Q-0003e3-Ub for qemu-devel@nongnu.org; Wed, 14 Jul 2004 02:20:54 -0400 Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bkd5e-0001sW-0L for qemu-devel@nongnu.org; Wed, 14 Jul 2004 02:18:02 -0400 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Bkd5c-0001ii-00 for ; Wed, 14 Jul 2004 08:18:00 +0200 Received: from c-24-6-66-193.client.comcast.net ([24.6.66.193]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Jul 2004 08:18:00 +0200 Received: from blp by c-24-6-66-193.client.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Jul 2004 08:18:00 +0200 From: Ben Pfaff Date: Tue, 13 Jul 2004 23:18:04 -0700 Message-ID: <877jt7ru1v.fsf@benpfaff.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: news Subject: [Qemu-devel] [patch] make PCI work with Windows NT 4 guest Reply-To: blp@cs.stanford.edu, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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