diff options
author | Kurt Bodiker <kurt.bodiker@braintrust-us.com> | 2018-05-01 10:05:33 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-05-01 23:17:29 -0400 |
commit | 230198a7d1f9d3cc7df986b4fbc4ab1cc4211640 (patch) | |
tree | 8576114fc3bebd740646afabfedaba55379aa3b9 /recipes-extended/xen/files/vtpm-implicit-fallthrough.patch | |
parent | 299c5243ddcdbf6028e44e0fa3e3ff314d97cc38 (diff) | |
download | meta-virtualization-230198a7d1f9d3cc7df986b4fbc4ab1cc4211640.tar.gz |
xen: TPM Emulator for Xen stubdoms
TPM Emulator is a software-based TPM and MTM emulator. This TPM Emulator
recipe creates a static library that is cross-compiled against MiniOS,
Xen, LWIP, Newlib, PolarSSL, and the stubdom-specific GMP headers and
subsequently used during the cross-compilation and linking of the Xen
vTPM and vTPM Manager stubdomains.
The current Xen source code is hardcoded to fetch a specific version of
this package. The patch files originate from the Xen/stubdom source
tree. This recipe provides the flexibility to change version or modify
the patches.
Signed-off-by: Kurt Bodiker <kurt.bodiker@braintrust-us.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-extended/xen/files/vtpm-implicit-fallthrough.patch')
-rw-r--r-- | recipes-extended/xen/files/vtpm-implicit-fallthrough.patch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes-extended/xen/files/vtpm-implicit-fallthrough.patch b/recipes-extended/xen/files/vtpm-implicit-fallthrough.patch new file mode 100644 index 00000000..e95d41fc --- /dev/null +++ b/recipes-extended/xen/files/vtpm-implicit-fallthrough.patch | |||
@@ -0,0 +1,10 @@ | |||
1 | --- a/tpm/tpm_cmd_handler.c.orig 2017-04-27 13:37:14.408000000 +0200 | ||
2 | +++ b/tpm/tpm_cmd_handler.c 2017-04-27 13:39:53.585000000 +0200 | ||
3 | @@ -3397,6 +3397,7 @@ | ||
4 | sizeof(rsp->auth2->nonceOdd.nonce)); | ||
5 | tpm_hmac_update(&hmac, (BYTE*)&rsp->auth2->continueAuthSession, 1); | ||
6 | tpm_hmac_final(&hmac, rsp->auth2->auth); | ||
7 | + /* fall-thru */ | ||
8 | case TPM_TAG_RSP_AUTH1_COMMAND: | ||
9 | tpm_hmac_init(&hmac, rsp->auth1->secret, sizeof(rsp->auth1->secret)); | ||
10 | tpm_hmac_update(&hmac, rsp->auth1->digest, sizeof(rsp->auth1->digest)); | ||