vtpmmgr: use XSM label as vTPM kernel hash
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Mon, 21 Apr 2014 17:23:05 +0000 (13:23 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 23 Apr 2014 10:58:26 +0000 (11:58 +0100)
commit5ff49ec44b0fa74b624fe2291e563a858c606087
tree70b61580583bdb2c71f5e1bfc2e9538a0598cf01
parent331d4b0eb8beb0af9c022de50cbf341e70c7ac80
vtpmmgr: use XSM label as vTPM kernel hash

Because there is not currently a method for the vTPM Manager to obtain a
build hash of a vTPM, use the hash of the vTPM's XSM label as a
substitute.  This allows the vTPM Manager to distinguish between vTPMs
intended to be paired with a hardware domain kernel (which cannot use
pv-grub) and vTPMs which are paired with a pv-grub domain and therefore
contain reliable measurements of the guest kernel in PCRs 4 and 5.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
docs/misc/vtpm-platforms.txt
docs/misc/vtpmmgr.txt
stubdom/vtpmmgr/init.c
stubdom/vtpmmgr/vtpm_cmd_handler.c
stubdom/vtpmmgr/vtpmmgr.h