aboutsummaryrefslogtreecommitdiffstats
path: root/tools/vtpm
Commit message (Collapse)AuthorAgeFilesLines
* tools/vtpm: use LDLIBS to pass -lgmpOlaf Hering2012-04-031-1/+1
| | | | | | | | | | Linking tpmd will fail with recent toolchains because -lgmp is passed via LDFLAGS instead of LDLIBS. With this change -lgpm is placed at the end of the gcc cmdline and linking tpmd succeeds again. Signed-off-by: Olaf Hering <olaf@aepfle.de> 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-211-3/+0
| | | | | | 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-171-1/+1
| | | | | | | | 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: Upgrade to using tpm_emulator-0.5.1Keir Fraser2009-08-242-28/+772
| | | | | | | | | | | | | | | | | | | | | | | | The newer version of the emulator contains several bug fixes, one that we were seeing in our use of vtpm. This patch also defines TPM_STRONG_PERSISTENCE for the new emulator. A couple of important notes about this patch: -This has only been tested on PVM domU's. In theory it should work for HVM but I have not tried it at all and can guarantee nothing. -All the relevant changes in tools/vtpm/vtpm.patch have been ported to tpm_emulator-0.5.1. -None of the changes in tpm_emulator.patch have been ported. In particular this means the BUILD_EMULATOR option, which as I understand lets you use the tpm_emulator in dom0 for a machine that does not have a real hardware TPM does not work. This functionality should be easy to add though because the new emulator already comes with a kernel module interface. -No considerations were made for the VTPM_MULTI_VM feature (which is supposedly unfinished). This patch may or may not break any progress made on that feature. Signed-off-by: Matt Fioravante <Matthew.Fioravante@jhuapl.edu>
* Do not print `***' when compiling unless we fall overKeir Fraser2009-01-121-1/+1
| | | | | | | | | | | | | | | This has finally bugged me enough to do something about it: make prints `***' when it stops due to an error. With make -j, and/or with automated build systems, this error marker can be in the middle of a large logfile. It is useful to be able to search for it. Therefore change occurrences of `*' to `=' for information and warning messages. `***' is reserved for cases where the build stops. A corresponding change is being applied to qemu-xen-unstable. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* 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>
* TPM emulator: HMAC calculation fix for response from TPM_LoadKey2Keir Fraser2008-03-031-2/+25
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* vtpm: Small makefile fix.Keir Fraser2008-01-301-1/+1
| | | | Signed-off-by: Jason Andryuk <the_deuce@yahoo.com>
* vtpm: Fix GetCapabilityOwner functionKeir Fraser2007-12-291-0/+15
| | | | | | | | GetCapabilityOwner function's behavior is different from that of a real tpm device. By the difference, a TPM Manager in an HVM domain could not detect whether TPM device has an owner or not. Signed-off-by: Kouichi YASAKI <yasaki.kouichi@jp.fujitsu.com>
* Fix some build system error handling.Keir Fraser2007-12-201-7/+7
| | | | Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* [VTPM] Fix vTPM function in HVM domainkfraser@localhost.localdomain2007-09-181-3/+29
| | | | | | | In Windows on HVM domain, GetPubkey function and Seal function become an error. Signed-off-by: Kouichi YASAKI <yasaki.kouichi@jp.fujitsu.com>
* VTPM: Fix bug where enabling vtpm causes installation errorkfraser@localhost.localdomain2007-05-241-1/+1
| | | | Signed-off-by: S.Caglar Onur <caglar@pardus.org.tr>
* VTPM_TOOLS: Added support for QEMU to communicate with vTPM over UNIXkfraser@localhost.localdomain2007-01-221-107/+203
| | | | | | 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-254-2863/+1127
| | | | | | | | 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] Updated vtpmd to save complete state in preperateion tokaf24@firebug.cl.cam.ac.uk2006-06-274-429/+972
| | | | | | | support suspend/resume and migration. Fixed startup bug. 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-272-72/+1379
| | | | | | | 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] Updated vtpm for new release of the tpm_emulator.kaf24@firebug.cl.cam.ac.uk2006-05-314-210/+424
| | | | | | New emulator includes AIK, DAA, and Transport Sessions Signed-off-by: Vinnie Scarlata <Vincent.r.scarlata@intel.com>
* VTPM_TOOLS: Restructured handlers for better clearity and created an ipckaf24@firebug.cl.cam.ac.uk2006-05-173-174/+46
| | | | | | | | 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-101-0/+6
| | | | | | | | | | | | * 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>
* 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>
* Fix bugs related to the virtual TPM. Also make the vTPMkaf24@firebug.cl.cam.ac.uk2006-02-162-5/+9
| | | | | | | | 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-161-3/+3
| | | | | | | | supports Linux Threads and NPTL threads. Also clean up vtpm Makefile. 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-122-2/+13
| | | | | | | | | | 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>
* Fix .hgignore and add missing vtpm patch file.kaf24@firebug.cl.cam.ac.uk2005-09-211-0/+499
|
* Add 64 bit support to the VTPM Tools plus do some minor cleanups.kaf24@firebug.cl.cam.ac.uk2005-09-204-253/+246
| | | | | | | | | | | | | 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>
* Fix vtpm build when doing 'make dist' (particularly when not root). shand@ubuntu.eng.hq.xensource.com2005-08-311-4/+6
| | | | | Signed-off-by: Steven Hand <steven@xensource.com>
* Remainder of Intel/IBM joint TPM Virtualization implementation for Xen. shand@ubuntu.eng.hq.xensource.com2005-08-305-0/+1938
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>