]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/mini-os.git/commit
mini-os/tpm{back, front}: Change shared page ABI
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 11 Apr 2013 16:20:25 +0000 (12:20 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 12 Apr 2013 13:28:17 +0000 (14:28 +0100)
commit811038c3af175e288f9c27022a8968ac9ed8493c
tree78c7c9c3f083825150d48ba8fe37d57d2f3ce895
parent0718f2359a73fef148df822ef0536cd3d2277666
mini-os/tpm{back, front}: Change shared page ABI

This changes the vTPM shared page ABI from a copy of the Xen network
interface to a single-page interface that better reflects the expected
behavior of a TPM: only a single request packet can be sent at any given
time, and every packet sent generates a single response packet. This
protocol change should also increase efficiency as it avoids mapping and
unmapping grants when possible. The vtpm xenbus device now requires a
feature-protocol-v2 node in xenstore to avoid conflicts with existing
(xen-patched) kernels supporting the old interface.

While the contents of the shared page have been defined to allow packets
larger than a single page (actually 4088 bytes) by allowing the client
to add extra grant references, the mapping of these extra references has
not been implemented; a feature node in xenstore may be used in the
future to indicate full support for the multi-page protocol. Most uses
of the TPM should not require this feature.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Cc: Jan Beulich <JBeulich@suse.com>
include/tpmback.h
include/tpmfront.h
tpmback.c
tpmfront.c