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 14:21:16 -0500 Message-ID: <4D9E0EAC.3020502@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> 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-yi0-f46.google.com ([209.85.218.46]:41424 "EHLO mail-yi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756685Ab1DGTVT (ORCPT ); Thu, 7 Apr 2011 15:21:19 -0400 Received: by yia27 with SMTP id 27so1163422yia.19 for ; Thu, 07 Apr 2011 12:21:19 -0700 (PDT) In-Reply-To: <20110407184417.GD7100@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 04/07/2011 01:44 PM, Gleb Natapov wrote: >> 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? QEMU does the leg work already to support SMM. It doesn't work with KVM because we treat SMM as ROM memory and trap read/write access. To make it work with KVM, you'd have to hack things around to switch the VGA space to RAM in order to the let the SMM code run. It's not impossible, but that's the main reason it doesn't Just Work. Regards, Anthony Liguori > -- > Gleb. >