From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH 3/3] SMM: Disable use of SMM when running under Xen Date: Thu, 28 Jun 2012 11:08:33 +0100 Message-ID: <1340878114-12815-3-git-send-email-ian.campbell__5443.78590207106$1340878269$gmane$org@citrix.com> References: <1340878070.10942.29.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1340878070.10942.29.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: seabios@seabios.org Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Xen does not support SMM mode. Signed-off-by: Ian Campbell --- src/smm.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/smm.c b/src/smm.c index 72e5e88..d0d1476 100644 --- a/src/smm.c +++ b/src/smm.c @@ -10,6 +10,7 @@ #include "config.h" // CONFIG_* #include "ioport.h" // outb #include "pci_ids.h" // PCI_VENDOR_ID_INTEL +#include "xen.h" // usingXen ASM32FLAT( ".global smm_relocation_start\n" @@ -151,6 +152,8 @@ smm_init(void) return; if (!CONFIG_USE_SMM) return; + if (usingXen()) + return; dprintf(3, "init smm\n"); pci_find_init_device(smm_init_tbl, NULL); -- 1.7.2.5