From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWvtC-00037y-KW for qemu-devel@nongnu.org; Sat, 23 Aug 2008 12:22:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWvtB-00035z-0L for qemu-devel@nongnu.org; Sat, 23 Aug 2008 12:22:58 -0400 Received: from [199.232.76.173] (port=58663 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWvtA-00035w-TD for qemu-devel@nongnu.org; Sat, 23 Aug 2008 12:22:56 -0400 Received: from il.qumranet.com ([212.179.150.194]:53815) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWvtA-0002DW-Pq for qemu-devel@nongnu.org; Sat, 23 Aug 2008 12:22:57 -0400 Date: Sat, 23 Aug 2008 19:22:53 +0300 From: Gleb Natapov Message-ID: <20080823162253.GB1999@minantech.com> References: <20080820131529.GJ3235@minantech.com> <00c801c9031b$e69fc340$0201a8c0@zeug> <20080821053405.GA27587@minantech.com> <20080821114537.GA25479@morn.localdomain> <20080821141451.GF27587@minantech.com> <02d901c903df$181a7ff0$0201a8c0@zeug> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <02d901c903df$181a7ff0$0201a8c0@zeug> Subject: [Qemu-devel] Re: [Bochs-developers] BIOS, ACPI, CMOS and Windows EvenID: 4 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sebastian Herbszt Cc: bochs-developers@lists.sourceforge.net, Kevin O'Connor , qemu-devel@nongnu.org On Fri, Aug 22, 2008 at 12:37:32AM +0200, Sebastian Herbszt wrote: >> diff -u -r1.29 rombios32.c >> --- rombios32.c 30 Jul 2008 15:13:40 -0000 1.29 >> +++ rombios32.c 21 Aug 2008 14:13:36 -0000 >> @@ -677,6 +677,8 @@ >> elcr[0], elcr[1]); >> } else if (vendor_id == PCI_VENDOR_ID_INTEL && device_id == PCI_DEVICE_ID_INTEL_82441) { >> /* i440 PCI bridge */ >> + pci_config_writeb(d, 0x60, cmos_readb(0x34)); >> + pci_config_writeb(d, 0x61, cmos_readb(0x35)); >> bios_shadow_init(d); >> } >> } > > I am not sure writing arbitrary values to those registers is such a good idea. Some OS, > driver or application could rely on the information stored there. Currently nothing is written to memory configuration registers at all, so if there is an application that depend on this values to be correct it will be broken today too. > It would also be possible to program those DRBx registers correctly up to memory > value of 1GB (or 2GB by using the info from the 440GX) and compute the pci hole properly, > then just fall back to 0xe0000000 if the memory size does exceed 1GB. Is there a need for 3GB pci hole especially on a system with only 1GB of main memory? > Hard coding the hole start to 0xe0000000, like you did in your first patch, looks like the > easiest solution tho. Yes, and I think it is good enough. What is the procedure of pushing the patch into bochs tree? -- Gleb.