VTPM mini-os: vtpmmgrdom
PATCH 11/12 VTPM mini-os: vtpmmgrdom
This patch provides a mini-os domain for the vtpm manager. It links in parts of the original vtpm_managerd code, openssl ported to mini-os, and implements the rest of the functionality itself.
All data and keys are stored in a disk image with a custom format which must be created and provided through the domain config file. This disk image is encrypted using TPM keys.
The vtpm manager requires access to the hardware tpm. This can be facilitated in 2 ways:
1. Direct access (default). To use this method, provide an io memory region to the domain using the vtpm managers domain config file. mmio = ['fed40',5]
2. Passthrough dom0: To use this method, use the paravirtualized tpm driver and set its backend to dom0. vtpm = ['backend=0']
Since hardware access is the default, you will also have tell the manager to use the paravirtualized driver extra = 'tpmdriver=tpmfront'
Install the vtpm connection daemon in dom0
$ cd /tools/vtpm_manager/vtpmconnd # make install Finally run the connection daemon before booting the domain. Make sure tpmbk and tpm_tis are loaded in dom0. # vtpmconnd
Further and more complete documentation is forthcoming
Signed off by: Matthew Fioravante <[email protected]>
stubdom/vtpmmgr/Makefile +51 -0
@@ -0,0 +1,51 @@ +# LICENSE AND DISCLAIMER +# +# Copyright © 2011 The Johns Hopkins University/Applied Physics +# Laboratory + +# This software was developed at The Johns Hopkins University/Applied +# Physics Laboratory (“JHU/APL”) that is the author thereof under the +# “work made for hire” provisions of the copyright law. Permission is +# hereby granted, free of charge, to any person obtaining a copy of this +# software and associated documentation (the “Software”), to use the +# Software without restriction, including without limitation the rights to +# copy, modify, merge, publish, distribute, sublicense, and/or sell copies +# of the Software, and to permit others to do so, subject to the following +# conditions: + +# 1. This LICENSE AND DISCLAIMER, including the copyright notice, shall +# be included in all copies of the Software, including copies of +# substantial portions of the Software; + +# 2. JHU/APL assumes no obligation to provide support of any kind with +# regard to the Software. This includes no obligation to provide assistance +# in using the Software nor to provide updated versions of the Software; and + +# 3. THE SOFTWARE AND ITS DOCUMENTATION ARE PROVIDED AS IS AND WITHOUT ANY +# EXPRESS OR IMPLIED WARRANTIES WHATSOEVER. ALL WARRANTIES INCLUDING, BUT +# NOT LIMITED TO, PERFORMANCE, MERCHANTABILITY, FITNESS FOR A PARTICULAR +# PURPOSE, AND NONINFRINGEMENT ARE HEREBY DISCLAIMED. USERS ASSUME THE +# ENTIRE RISK AND LIABILITY OF USING THE SOFTWARE. USERS ARE ADVISED TO +# TEST THE SOFTWARE THOROUGHLY BEFORE RELYING ON IT. IN NO EVENT SHALL THE +# JOHNS HOPKINS UNIVERSITY BE LIABLE FOR ANY DAMAGES WHATSOEVER, INCLUDING, +# WITHOUT LIMITATION, ANY LOST PROFITS, LOST SAVINGS OR OTHER INCIDENTAL OR +# CONSEQUENTIAL DAMAGES, ARISING OUT OF THE USE OR INABILITY TO USE THE +# SOFTWARE. + +XEN_ROOT=../.. + +TARGET=vtpmmgr.a +OBJS=vtpmmgr.o vtpm_cmd_handler.o vtpm_storage.o + +CFLAGS+=-Werror + +build: $(TARGET) +$(TARGET): $(OBJS) + ar -rcs $@ $^ + +clean: + rm -f $(TARGET) $(OBJS) + +distclean: clean + +.PHONY: compat clean-compat clean distclean
stubdom/vtpmmgr/vtpm_cmd_handler.c +174 -0
174 lines not on this page · raw message
stubdom/vtpmmgr/vtpm_cmd_handler.h +42 -0
42 lines not on this page · raw message
stubdom/vtpmmgr/vtpmmgr.c +466 -0
466 lines not on this page · raw message
stubdom/vtpmmgr/vtpmmgr.h +79 -0
79 lines not on this page · raw message
stubdom/vtpmmgr/vtpm_storage.c +1348 -0
1,348 lines not on this page · raw message
stubdom/vtpmmgr/vtpm_storage.h +69 -0
69 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel