From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=45752 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7uUd-0000ki-7O for qemu-devel@nongnu.org; Thu, 07 Apr 2011 15:08:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7uUZ-0006GZ-18 for qemu-devel@nongnu.org; Thu, 07 Apr 2011 15:03:44 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:33164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7uUY-0006GV-Qa for qemu-devel@nongnu.org; Thu, 07 Apr 2011 15:03:42 -0400 Received: by pxi15 with SMTP id 15so1386788pxi.33 for ; Thu, 07 Apr 2011 12:03:41 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <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> <20110407184417.GD7100@redhat.com> Date: Thu, 7 Apr 2011 12:03:41 -0700 Message-ID: Subject: Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin? From: Jordan Justen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gleb Natapov Cc: kvm-devel , Bei Guan , QEMU Developers On Thu, Apr 7, 2011 at 11:44, Gleb Natapov wrote: > On Thu, Apr 07, 2011 at 01:37:14PM -0500, Anthony Liguori wrote: >> >>>>The CS base starts out at 0xf0000 and IP is 0xfff0. =A0That gives a >> >>>>real address of 0xffff0. =A0This is usually a trampoline to somewher= e >> >>>>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> =A01MB, but the SMM entry is in 16 bit mode. >> >> KVM doesn't support SMM although that's not because of this. =A0KVM >> doesn't allow execution of ROM memory which makes it difficult to >> implement PAM in the way it's intended to be implemented. =A0This >> makes SMM a bit tricky to make work. =A0Since 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? True. The only possible requirement is to 'hide SMRAM' when not in SMM mode. Even this is chipset specific, and arguable depending on the goals of SMM support in that system. (Although, generally, hiding SMRAM is a requirement. :) But, Anthony's point ('there's never really been a pressing need to support SMM') is probably the most important here, as I can't see a compelling use for SMM in QEMU. -Jordan