From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kulnt-0008S7-Cq for qemu-devel@nongnu.org; Tue, 28 Oct 2008 06:28:01 -0400 Received: from [199.232.76.173] (port=49559 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kulnr-0008Rr-No for qemu-devel@nongnu.org; Tue, 28 Oct 2008 06:27:59 -0400 Received: from mx1.polytechnique.org ([129.104.30.34]:55690) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kulnq-0000gQ-VJ for qemu-devel@nongnu.org; Tue, 28 Oct 2008 06:27:59 -0400 Message-ID: <4906E91C.7090505@bellard.org> Date: Tue, 28 Oct 2008 11:27:40 +0100 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 3/6] Disable init of SMM. References: <20081026144424.9145.74247.stgit@gleb-debian.qumranet.com.qumranet.com> <20081026144440.9145.61050.stgit@gleb-debian.qumranet.com.qumranet.com> In-Reply-To: <20081026144440.9145.61050.stgit@gleb-debian.qumranet.com.qumranet.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: gleb@redhat.com Cc: qemu-devel@nongnu.org Can you explain why you disabled SMM ? The memory it uses is only mapped if SMI is enabled, so the OS cannot normally use it. Regards, Fabrice. Gleb Natapov wrote: > SMM initialization uses memory available for OS use. > > Signed-off-by: Gleb Natapov > --- > > bios/rombios32.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > mode change 100644 => 100755 bios/rombios32.c > > diff --git a/bios/rombios32.c b/bios/rombios32.c > old mode 100644 > new mode 100755 > index ff84f80..e887d71 > --- a/bios/rombios32.c > +++ b/bios/rombios32.c > @@ -38,7 +38,7 @@ typedef unsigned long long uint64_t; > //#define BX_USE_EBDA_TABLES > > /* define it if the (emulated) hardware supports SMM mode */ > -#define BX_USE_SMM > +//#define BX_USE_SMM > > #define cpuid(index, eax, ebx, ecx, edx) \ > asm volatile ("cpuid" \ > > > >