]> xenbits.xensource.com Git - people/liuw/stubdom.git/commitdiff
vTPM/TPM2: Add global data in vtpm_globals{}
authorQuan Xu <quan.xu@intel.com>
Thu, 15 Jan 2015 09:21:42 +0000 (04:21 -0500)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 28 Jan 2015 12:54:49 +0000 (12:54 +0000)
These data is for the Mini-os to access TPM 2.0 hardware.

Signed-off-by: Quan Xu <quan.xu@intel.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
vtpmmgr/vtpmmgr.h

index 2d9d15319c0c344f911a3837bb2579d3062dfa1e..0d0c604eaaf414a055812867dc36ff4e4a98e3bb 100644 (file)
@@ -44,6 +44,7 @@
 #include "uuid.h"
 #include "tcg.h"
 #include "vtpm_manager.h"
+#include "tpm2_types.h"
 
 #define RSA_KEY_SIZE 0x0800
 #define RSA_CIPHER_SIZE (RSA_KEY_SIZE / 8)
@@ -59,6 +60,14 @@ struct vtpm_globals {
    ctr_drbg_context    ctr_drbg;
 
    int hw_locality;
+
+    /* TPM 2.0 */
+    TPM_AuthArea       pw_auth;
+    TPM_AuthArea       srk_auth_area;
+    TPM_HANDLE         srk_handle;
+    TPM_HANDLE         sk_handle;
+    TPM2B_NAME         sk_name;
+    TPM2_RSA_KEY       tpm2_storage_key;
 };
 
 struct tpm_opaque {