From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DIuo4-00075b-J5 for qemu-devel@nongnu.org; Tue, 05 Apr 2005 16:37:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DIunv-00070J-9O for qemu-devel@nongnu.org; Tue, 05 Apr 2005 16:37:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DIunv-0006z4-2g for qemu-devel@nongnu.org; Tue, 05 Apr 2005 16:37:43 -0400 Received: from [212.250.162.19] (helo=mta13-winn.mailhost.ntl.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DIvF1-0004I2-19 for qemu-devel@nongnu.org; Tue, 05 Apr 2005 17:05:43 -0400 Received: from aamta08-winn.mailhost.ntl.com ([212.250.162.8]) by mta13-winn.mailhost.ntl.com with ESMTP id <20050405210525.LCSA2577.mta13-winn.mailhost.ntl.com@aamta08-winn.mailhost.ntl.com> for ; Tue, 5 Apr 2005 22:05:25 +0100 Received: from imcfarla.homelinux.net ([213.105.35.3]) by aamta08-winn.mailhost.ntl.com with ESMTP id <20050405210525.TEKW1844.aamta08-winn.mailhost.ntl.com@imcfarla.homelinux.net> for ; Tue, 5 Apr 2005 22:05:25 +0100 From: Iain McFarlane Subject: Re: A Fix Re: APM bug Re: [Qemu-devel] Re: Suggestion - trap window-close of VM Date: Tue, 5 Apr 2005 22:05:22 +0100 References: <200504042326.56227.imcfarla@ntlworld.com> <200504051834.18488.info@vruppert.de> In-Reply-To: <200504051834.18488.info@vruppert.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504052205.22932.imcfarla@ntlworld.com> 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 On Tuesday 05 Apr 2005 17:34, Volker Ruppert wrote: > 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 Yes this now works - I can even hibernate win2k and it will restart successfully. Has anyone had any joy installing service pack 4? Regards, Iain