From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin? Date: Thu, 07 Apr 2011 16:34:38 -0500 Message-ID: <4D9E2DEE.9080108@codemonkey.ws> 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> <4D9E0EAC.3020502@codemonkey.ws> <20110407193107.GH7100@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Jordan Justen , Bei Guan , kvm-devel , QEMU Developers To: Gleb Natapov Return-path: Received: from mail-iw0-f174.google.com ([209.85.214.174]:34994 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752003Ab1DGVek (ORCPT ); Thu, 7 Apr 2011 17:34:40 -0400 Received: by iwn34 with SMTP id 34so2877055iwn.19 for ; Thu, 07 Apr 2011 14:34:40 -0700 (PDT) In-Reply-To: <20110407193107.GH7100@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 04/07/2011 02:31 PM, Gleb Natapov wrote: > > Remapping part is easy. As you are saying QEMU already does remapping, Yes. > the only thing missing is creating/destroying/remapping KVM memory slot > (with SMP it is slightly more complicated, but doable). Yup. It's not impossible but not free. > But after doing > this SMM will not Just Work in KVM on Intel because VMX does not support > SMM mode and it can't be approximated by vm86, so KVM will have to emulate > every single instruction while in SMM mode and this like will not work. Isn't everyone using Westmere's at this point with unrestricted guest mode :-) BTW, I assume that there's some kernel logic needed to enable SMM intercepts but I'm not entirely sure what's involved there. Regards, Anthony Liguori > -- > Gleb. >