From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=57352 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7uBu-0004Fr-QI for qemu-devel@nongnu.org; Thu, 07 Apr 2011 14:44:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7uBq-0001Ry-Gx for qemu-devel@nongnu.org; Thu, 07 Apr 2011 14:44:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7uBq-0001Rd-8Y for qemu-devel@nongnu.org; Thu, 07 Apr 2011 14:44:22 -0400 Date: Thu, 7 Apr 2011 21:44:17 +0300 From: Gleb Natapov Subject: Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin? Message-ID: <20110407184417.GD7100@redhat.com> References: <4D9DBC05.8010400@codemonkey.ws> <20110407153106.GA7100@redhat.com> <4D9DDB80.8090905@codemonkey.ws> <20110407155142.GB7100@redhat.com> <4D9DE166.9080001@codemonkey.ws> <4D9E045A.90500@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D9E045A.90500@codemonkey.ws> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Jordan Justen , Bei Guan , kvm-devel , QEMU Developers On Thu, Apr 07, 2011 at 01:37:14PM -0500, Anthony Liguori wrote: > >>>>The CS base starts out at 0xf0000 and IP is 0xfff0. That gives a > >>>>real address of 0xffff0. This is usually a trampoline to somewhere > >>>>else in the space. > >>>CS descriptor and CS selector don't have to be in sync (big real mode). > >>Indeed. > >Another place this will often be seen is SMM, as the SMBASE can easily > >be> 1MB, but the SMM entry is in 16 bit mode. > > KVM doesn't support SMM although that's not because of this. KVM > doesn't allow execution of ROM memory which makes it difficult to > implement PAM in the way it's intended to be implemented. This > makes SMM a bit tricky to make work. Since there's never really > been a pressing need to support SMM, to my knowledge, noone has even > tried. > KVM allows to execute ROM memory (BIOS and option roms run this way). It just makes it indistinguishable from RAM, but read only memory slot support shouldn't be too hard. Why ability to execute ROM memory is needed to support SMM though? -- Gleb.