]> xenbits.xensource.com Git - seabios.git/commitdiff
make SeaBios compatible with Xen vTPM.
authorQuan Xu <quan.xu@intel.com>
Thu, 30 Apr 2015 23:43:04 +0000 (19:43 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 21 May 2015 17:18:45 +0000 (13:18 -0400)
Signed-off-by: Quan Xu <quan.xu@intel.com>
src/tcgbios.c

index c837ab64481a4de471a8b1f5682e40639476a94d..4cda80030444f2537e1b172a128f5c07c88db672 100644 (file)
@@ -23,7 +23,7 @@
 #include "std/acpi.h"  // RSDP_SIGNATURE, rsdt_descriptor
 #include "bregs.h" // struct bregs
 #include "sha1.h" // sha1
-
+#include "fw/paravirt.h" // runningOnXen
 
 static const u8 Startup_ST_CLEAR[2] = { 0x00, TPM_ST_CLEAR };
 static const u8 Startup_ST_STATE[2] = { 0x00, TPM_ST_STATE };
@@ -494,6 +494,8 @@ tpm_start(void)
         return 0;
 
     tpm_acpi_init();
+    if (runningOnXen())
+        return 0;
 
     return tpm_startup();
 }