From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin? Date: Thu, 7 Apr 2011 21:44:17 +0300 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 Cc: Jordan Justen , Bei Guan , QEMU Developers , kvm-devel To: Anthony Liguori Return-path: Received: from mx1.redhat.com ([209.132.183.28]:14266 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754889Ab1DGSoW (ORCPT ); Thu, 7 Apr 2011 14:44:22 -0400 Content-Disposition: inline In-Reply-To: <4D9E045A.90500@codemonkey.ws> Sender: kvm-owner@vger.kernel.org List-ID: 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.