aboutsummaryrefslogtreecommitdiffstats
path: root/stubdom/vtpm
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2013-03-21 16:11:24 -0400
committerIan Campbell <ian.campbell@citrix.com>2013-04-12 14:28:17 +0100
commit57c265546e7d12d2f44225928c6b5679ad0a14ba (patch)
tree93108494494b693a7872b06e228b335af6dd17f2 /stubdom/vtpm
parentc9e6dcb08b5d6f68d05f658850c72f8888d8c533 (diff)
downloadxen-57c265546e7d12d2f44225928c6b5679ad0a14ba.tar.gz
xen-57c265546e7d12d2f44225928c6b5679ad0a14ba.tar.bz2
xen-57c265546e7d12d2f44225928c6b5679ad0a14ba.zip
stubdom/vtpm: Support locality field
The vTPM protocol now contains a field allowing the locality of a command to be specified; pass this to the TPM when processing a packet. While the locality is not currently checked for validity, a binding between locality and some distinguishing feature of the client domain (such as the XSM label) will need to be defined in order to properly support a multi-client vTPM. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Acked-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu>
Diffstat (limited to 'stubdom/vtpm')
-rw-r--r--stubdom/vtpm/vtpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stubdom/vtpm/vtpm.c b/stubdom/vtpm/vtpm.c
index 3362ea816b..10e74777b9 100644
--- a/stubdom/vtpm/vtpm.c
+++ b/stubdom/vtpm/vtpm.c
@@ -183,7 +183,7 @@ static void main_loop(void) {
}
/* If not disabled, do the command */
else {
- if((res = tpm_handle_command(tpmcmd->req, tpmcmd->req_len, &tpmcmd->resp, &tpmcmd->resp_len)) != 0) {
+ if((res = tpm_handle_command(tpmcmd->req, tpmcmd->req_len, &tpmcmd->resp, &tpmcmd->resp_len, tpmcmd->locality)) != 0) {
error("tpm_handle_command() failed");
create_error_response(tpmcmd, TPM_FAIL);
}