]> xenbits.xensource.com Git - seabios.git/commitdiff
SMM: Disable use of SMM when running under Xen
authorIan Campbell <ian.campbell@citrix.com>
Thu, 28 Jun 2012 10:08:33 +0000 (11:08 +0100)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 2 Jul 2012 15:14:51 +0000 (11:14 -0400)
Xen does not support SMM mode.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
src/smm.c

index 72e5e88c554b1603d67d1a8c332a5269f13aeaf4..d0d147656cf6b6cb9424cd6d90c3a264a35e351d 100644 (file)
--- 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);