From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=46168 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgfTk-00080x-7W for qemu-devel@nongnu.org; Wed, 04 Aug 2010 11:02:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgfTi-0004xF-Ny for qemu-devel@nongnu.org; Wed, 04 Aug 2010 11:01:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13781) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgfTi-0004x1-E3 for qemu-devel@nongnu.org; Wed, 04 Aug 2010 11:01:58 -0400 Date: Wed, 4 Aug 2010 18:01:54 +0300 From: Gleb Natapov Subject: Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35? Message-ID: <20100804150154.GZ10499@redhat.com> References: <4C591D48.9080301@redhat.com> <4C592218.3000901@redhat.com> <4C596549.1070109@codemonkey.ws> <20100804130709.GL10499@redhat.com> <4C5967D8.7080707@codemonkey.ws> <20100804132408.GG28523@amd.home.annexia.org> <20100804132625.GN10499@redhat.com> <4C59779E.3060000@codemonkey.ws> <20100804143842.GX10499@redhat.com> <4C597E4F.2050108@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C597E4F.2050108@codemonkey.ws> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org, Gerd Hoffmann , "Richard W.M. Jones" , kvm@vger.kernel.org, Avi Kivity On Wed, Aug 04, 2010 at 09:50:55AM -0500, Anthony Liguori wrote: > On 08/04/2010 09:38 AM, Gleb Natapov wrote: > >> > >>But even if it wasn't it can potentially create havoc. I think we > >>currently believe that the northbridge likely never forwards RAM > >>access to a device so this doesn't fit how hardware would work. > >> > >Good point. > > > >>More importantly, BIOSes and ROMs do very funny things with RAM. > >>It's not unusual for a ROM to muck with the e820 map to allocate RAM > >>for itself which means there's always the chance that we're going to > >>walk over RAM being used for something else. > >> > >ROM does not muck with the e820. It uses PMM to allocate memory and the > >memory it gets is marked as reserved in e820 map. > > PMM allocations are only valid during the init function's execution. > It's intention is to enable the use of scratch memory to decompress > or otherwise modify the ROM to shrink its size. > Hm, may be. I read seabios code differently, but may be I misread it. > If a ROM needs memory after the init function, it needs to use the > traditional tricks to allocate long term memory and the most popular > one is modifying the e820 tables. > e820 has no in memory format, > See src/arch/i386/firmware/pcbios/e820mangler.S in gPXE. so this ugly code intercepts int15 and mangle result. OMG. How this can even work if more then two ROMs want to do that? -- Gleb.