aboutsummaryrefslogtreecommitdiffstats
path: root/tools/vtpm_manager
Commit message (Collapse)AuthorAgeFilesLines
* tools: Remove $(CFLAGS) from links lines.Ian Campbell2011-03-312-3/+3
| | | | | | | | The relevant variable in these circumstances is called $(LDFLAGS). Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools: blktap2: copy xenstore/hashtable.h into blktap2Ian Campbell2011-03-315-0/+27
| | | | | | | | | | | | | hashtable.c has already been copied, forked and modified, there doesn't seem much point in avoiding the same for the header until someone feels motivated to properly refactor. Add comments to the various duplicated files cross-referencing each other for future reference and as a barrier to forking again... Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools: remove unnecessary uses of -I.Ian Campbell2011-03-211-1/+1
| | | | | | | | | | It's not needed unless you are including headers in the current directory _and_ you can't use "" instead of <> because the headers are to be installed. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools: vtpm: Use $(BINDIR) rather than a privately defined variableIan Campbell2011-03-213-6/+3
| | | | | | Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* build: Make XEN_ROOT an absolute path.Keir Fraser2011-03-176-6/+6
| | | | | | | | Otherwise make can search the path relative to certain standard paths such as /usr/include (e.g., the line '-include $(XEN_ROOT)/.config' in Config.mk suffers from this). Signed-off-by: Keir Fraser <keir@xen.org>
* vtpm: Fix hashed-memory file writing.Keir Fraser2009-08-241-1/+1
| | | | | | | | | | | | | | There is a bug in the vtpm_manager that has to do with hashing and saving the NVM memory files (vtpm_dm_%d.data). The file is not truncated when it is written and this results in the hash becoming invalid because of the extra bits at the end of the file. This patch adds O_TRUNC to the flags when opening the file. More details on this issue are in the bug report on bugzilla=20 http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=3D1488 Signed-off-by: Matt Fioravante <Matthew.Fioravante@jhuapl.edu>
* Use -MMD -MF in tools/* rather than -Wp,-M...Keir Fraser2009-01-121-6/+1
| | | | | | | | | | | | | | | | | | | | | | If you use -MMD -MF then the correct .o filename is written to the .*.d file as the compiler driver arranges everything. This was done in 19010:275abe1c5d24 for the hypervisor. In this patch we do the same elsewhere in the xen-unstable tree, particularly tools/. Specifically: * Change tools/Rules.mk to add -MMD -MF ... to CFLAGS and set DEPS. * Remove -Wp,-MD... from every other Makefile * Remove setting of DEPS from every other Makefile * Ensure that every Makefile says -include $(DEPS) * Ensure that every Makefile's clean target removes $(DEPS) Some Makefiles were already halfway there, but often for a different variable name eg PROG_DEP. The variable name is now standardised in Rules.mk as DEPS. I have done a test build with this change, on Debian etch. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools: replace sprintf with snprintf where applicableKeir Fraser2008-06-121-8/+14
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* tools/vtpm_manager build: Use generic subdirs rules.Keir Fraser2008-03-251-18/+2
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* tools/vtpm_manager build: Cleanup makefiles.Keir Fraser2008-03-253-18/+11
| | | | | | | Remove unnecessary openssl check. Use VPATH. Make clean remove all generated files. Signed-off-by: Bastian Blank <waldi@debian.org>
* [VTPM] VTPM manager -- Fix parameter checkkfraser@localhost.localdomain2007-09-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | If vtpm_managed is started with the same vtpm instance, the following error occurs. ++++++++++++ Loading NVM. Sending LoadNVM command INFO[VTSP]: Unbinding 256 bytes of data. ERROR in VTSP_Unbind at vtsp.c:719 code: TPM_BAD_PARAMETER. ERROR in envelope_decrypt at securestorage.c:156 code:TPM_BAD_PARAMETER. ERROR[VTPM]: Failed to envelope decrypt data .ERROR in VTPM_Handle_Load_NVM at securestorage.c:284 code: TPM_BAD_PARAMETER. ERROR[VTPM]: Failed to load NVM .INFO[VTPM]: [VTPM Listener]: VTPM Listener waiting for messages. Reading LoadNVM header ++++++++++++ Signed-off-by: Kouichi YASAKI <yasaki.kouichi@jp.fujitsu.com>
* [VTPM] Fixed typo in VTPM manager.kfraser@localhost.localdomain2007-07-111-1/+1
| | | | | | | | Replaces an instance of pthread_mutex_lock() that should be pthreaad_mutex_unlock(). With thanks to our OpenTC partners at the Technical University of Sofia, whose static analysis found this bug. Signed-off-by: Derek G. Murray <Derek.Murray@cl.cam.ac.uk>
* VTPM_TOOLS: Added support for QEMU to communicate with vTPM over UNIXkfraser@localhost.localdomain2007-01-227-26/+42
| | | | | | socket for HVM guests. Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
* Clean up duplication of 'install' macros in the Makefiles.kfraser@localhost.localdomain2006-10-171-5/+0
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* VTPM_TOOLS: Updated vtpm for new release of tpm_emulator 0.4, and setkfraser@localhost.localdomain2006-07-255-6/+9
| | | | | | | | up easier tracking of the emulator. Also fixed a few minor bugs in the manager. Signed-off-by: Vincent Scarlata <vincent.r.scarlata@intel.com>
* [VTPM_Tools] Support for (non-local) Migration added. Local migrationkfraser@localhost.localdomain2006-07-1025-149/+1696
| | | | | | | works provided that the hotplug scripts deliver the "suspend" before the "resume," but this is not always true. Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
* [VTPM_TOOLS] Hotplug script enabled the vtpm manager and removed thekaf24@firebug.cl.cam.ac.uk2006-06-2712-81/+198
| | | | | | | control messages from the BE. Signed-off-by: Vincent Scarlata <vincent.r.scarlata@intel.com>
* [VTPM_TOOLS] Moved the developement tpm_emulator down to ring 3, whichkaf24@firebug.cl.cam.ac.uk2006-06-273-16/+37
| | | | | | | should make debugging easier as well as fix the emulator for x86_64 Signed-off-by: Vincent Scarlata <vincent.r.scarlata@intel.com>
* VTPM_TOOLS: Restructured handlers for better clearity and created an ipckaf24@firebug.cl.cam.ac.uk2006-05-1712-819/+1132
| | | | | | | | abstraction needed for expansion to hot plug and migration support. Also fixed a bug in savestate. Signed-off-by: Vinnie Scarlata <Vincent.r.scarlata@intel.com>
* build: Clean up use of .PHONYkaf24@firebug.cl.cam.ac.uk2006-04-105-0/+25
| | | | | | | | | | | | * Move .PHONY directives next to targets, this makes them a lot harder to miss * Add missing .PHONY directives * Remove nonexistent .PHONY directives * Hopefully I didn'T miss anything... Signed-Off-By: Horms <horms@verge.net.au>
* More build config changes:kaf24@firebug.cl.cam.ac.uk2006-03-101-1/+1
| | | | | | | | | | - Build -O2 rather than -O3 - Build with -Wstrict-prototypes - Move target-specific generic compiler switches to Config.mk Signed-off-by: Keir Fraser <keir@xensource.com>
* Clean up the usage of CFLAGS. This is nice for packagers, who wouldkaf24@firebug.cl.cam.ac.uk2006-03-091-1/+1
| | | | | | | | like to control the base compilation flags from a central place. Signed-off-by: Charles Coffing <ccoffing@novell.com>
* VTPM_Tools: Fix error when closing only vtpm, and fix restore bug whenkaf24@firebug.cl.cam.ac.uk2006-03-034-7/+17
| | | | | | | | | | | no dmis exist The first bug prevented the TPM tests from running successfully more than once in a row. Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
* Fix bugs related to the virtual TPM. Also make the vTPMkaf24@firebug.cl.cam.ac.uk2006-02-161-1/+1
| | | | | | | | manager listen on /dev/vtpm. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* VTPM Tools: Fix threading bug in vtpm_manager while using NPTL. Nowkaf24@firebug.cl.cam.ac.uk2006-02-164-14/+10
| | | | | | | | supports Linux Threads and NPTL threads. Also clean up vtpm Makefile. Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
* Fix a bug that causes storage key auth to be generated twice.kaf24@firebug.cl.cam.ac.uk2006-01-191-3/+0
| | | | | | Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
* Adds a check to vtpm_manager and vtpm Makefiles to verify openssl andkaf24@firebug.cl.cam.ac.uk2006-01-121-3/+8
| | | | | | | | | | gmp dev files are installed. If files are missing, Makefile exits with a message indicating that these tools will not be built, rather than an error, which prevents Xen from building. Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
* This patch adds TPM_Seal support to the VTSP. On measured platformskaf24@firebug.cl.cam.ac.uk2006-01-043-17/+220
| | | | | | | | this can be use to better protect secrets in the VTPM System Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
* Virtual TPM persistent states contain VTPM secrets, which are encryptedkaf24@firebug.cl.cam.ac.uk2005-12-307-166/+271
| | | | | | | | | | using symmetric keys and stored on disk along with those symmetric keys. The attached patch uses the TPM to encrypt the symmetric keys and other global secrets before saving them to disk. Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
* Move some useful cryptographic enveloping code into their ownkaf24@firebug.cl.cam.ac.uk2005-12-161-73/+124
| | | | | | | | functions so they can be used by other parts of the VTPM code. Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
* Removes the carriage returns from some of the vtpmkaf24@firebug.cl.cam.ac.uk2005-11-3010-1516/+1509
| | | | | | | | source files that were edited in windows at some point. Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
* Remove unnecessary NULL checks before freeing memory blocks.kaf24@firebug.cl.cam.ac.uk2005-11-112-4/+2
| | | | | | | | | The following functions check for NULL internally: free, kfree, xfree, free_xenheap_page[s] Signed-off-by: Keir Fraser <keir@xensource.com>
* The attached patch to 1) fix a 64-bit bug with some of the data packing,kaf24@firebug.cl.cam.ac.uk2005-11-024-17/+22
| | | | | | | | and 2) adds a workaround for an Infineon TPM hardware bug. Signed-off-by: Vinnie Scarlata, Joseph Cihula (@intel.com)
* Add 64 bit support to the VTPM Tools plus do some minor cleanups.kaf24@firebug.cl.cam.ac.uk2005-09-2016-1519/+1672
| | | | | | | | | | | | | The VTPM manager and VTPMs fully support both 32 and 64 bit OSes. The tpm_emulator (provided for debugging on TPM-less machines) does not support 64-bit kernels by default though. See the README for details on how to use it on 64-bit kernels. (Vinnie Scarlata, Intel Corporation) Signed-off-by: Joe Cihula <joe.cihula@intel.com>
* vTPM manager - Intel/IBM joint TPM Virtualization implementation for Xen. shand@ubuntu.eng.hq.xensource.com2005-08-3042-0/+9197
This is a software implementation for people without h/w vTPM support. Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com> Signed-off-by: Joseph Cihula <joseph.cihula@intel.com> Signed-off-by: Steven Hand <steven@xensource.com>