From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DIqgk-0008Lg-F3 for qemu-devel@nongnu.org; Tue, 05 Apr 2005 12:14:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DIqgi-0008KR-I8 for qemu-devel@nongnu.org; Tue, 05 Apr 2005 12:14:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DIqeE-0007OH-Mq for qemu-devel@nongnu.org; Tue, 05 Apr 2005 12:11:26 -0400 Received: from [212.227.126.188] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DIqvv-0005gs-Of for qemu-devel@nongnu.org; Tue, 05 Apr 2005 12:29:44 -0400 Received: from [212.227.126.209] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1DIqvg-0006qB-00 for qemu-devel@nongnu.org; Tue, 05 Apr 2005 18:29:28 +0200 Received: from [217.237.119.207] (helo=pD9ED77CF.dip0.t-ipconnect.de) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1DIqvg-0003yw-00 for qemu-devel@nongnu.org; Tue, 05 Apr 2005 18:29:28 +0200 From: Volker Ruppert Subject: Re: A Fix Re: APM bug Re: [Qemu-devel] Re: Suggestion - trap window-close of VM Date: Tue, 5 Apr 2005 18:34:18 +0200 References: <42517591.30103@praguespringpeople.org> <200504042326.56227.imcfarla@ntlworld.com> In-Reply-To: <200504042326.56227.imcfarla@ntlworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504051834.18488.info@vruppert.de> Reply-To: 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 Hi, > > I needed to patch the BIOS - which didn't implement the APM 1.2 16-bit > > protected mode interface that Windows 2000 apparently requires. > >... > > > > What doesn't work yet is Standby and Suspend, although I've generalised > > My network (using -user-net) stops working when I use your patched BIOS. > > But it does close the window on shutdown! I guess the patched rombios is based on a newer version from Bochs CVS. Qemu is still using the rombios of May 31, 2004 with some patches. In the meantime the PCI IRQ routing table has been modified and the PCI IRQ initialization has been added. Qemu needs a small patch to make it work again. I have already sent this patch to Fabrice Bellard and posted it here in the list, but nothing happened. I'd like to apply the APM patch to the official Bochs BIOS if you can confirm that it works. Here is the patch: diff -urN /home/volker/qemu/hw/pci.c ./hw/pci.c --- /home/volker/qemu/hw/pci.c 2004-10-09 23:25:21.000000000 +0200 +++ ./hw/pci.c 2004-12-24 20:10:50.000000000 +0100 @@ -494,7 +494,7 @@ static inline int pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num) { int slot_addend; - slot_addend = (pci_dev->devfn >> 3); + slot_addend = (pci_dev->devfn >> 3) - 1; return (irq_num + slot_addend) & 3; } -- Bye Volker