qemu-e2k/include/qemu
Stefan Berger 4549a8b7ee Add a TPM Passthrough backend driver implementation
This patch is based of off version 9 of Stefan Berger's patch series
  "QEMU Trusted Platform Module (TPM) integration"
and adds a new backend driver for it.

This patch adds a passthrough backend driver for passing commands sent to the
emulated TPM device directly to a TPM device opened on the host machine.
Thus it is possible to use a hardware TPM device in a system running on QEMU,
providing the ability to access a TPM in a special state (e.g. after a Trusted
Boot).

This functionality is being used in the acTvSM Trusted Virtualization Platform
which is available on [1].

Usage example:
  qemu-system-x86_64 -tpmdev passthrough,id=tpm0,path=/dev/tpm0 \
                     -device tpm-tis,tpmdev=tpm0 \
                     -cdrom test.iso -boot d

Some notes about the host TPM:
The TPM needs to be enabled and activated. If that's not the case one
has to go through the BIOS/UEFI and enable and activate that TPM for TPM
commands to work as expected.
It may be necessary to boot the kernel using tpm_tis.force=1 in the boot
command line or 'modprobe tpm_tis force=1' in case of using it as a module.

Regards,
Andreas Niederl, Stefan Berger

[1] http://trustedjava.sourceforge.net/

Signed-off-by: Andreas Niederl <andreas.niederl@iaik.tugraz.at>
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Reviewed-by: Joel Schopp <jschopp@linux.vnet.ibm.com>
Message-id: 1361987275-26289-6-git-send-email-stefanb@linux.vnet.ibm.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-03-12 13:40:55 -05:00
..
acl.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
atomic.h block-migration: add lock 2013-03-11 13:32:01 +01:00
bitmap.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
bitops.h bitops: Remove routines redundant with host-utils 2013-02-16 11:12:52 +00:00
bswap.h bswap: Fix width of swap in leul_to_cpu 2013-02-06 08:29:21 -06:00
cache-utils.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
compatfd.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
compiler.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
config-file.h qemu-option: move standard option definitions out of qemu-config.c 2013-01-12 17:17:53 +01:00
envlist.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
error-report.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
event_notifier.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
fifo8.h hw: move fifo.[ch] to libqemuutil 2013-03-01 13:53:10 +01:00
hbitmap.h hbitmap: Use non-bitops ctzl 2013-02-16 11:11:34 +00:00
host-utils.h host-utils: Use __int128_t for mul[us]64 2013-02-17 14:28:57 +00:00
int128.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
iov.h iov: add iov_discard_front/back() to remove data 2013-01-02 15:58:05 +01:00
log.h qemu-log: default to stderr for logging output 2013-02-26 13:31:47 -06:00
main-loop.h iohandler: switch to GPollFD 2013-02-21 16:17:31 -06:00
module.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
notify.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
option.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
option_int.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
osdep.h qemu-file: check exit status when closing a pipe QEMUFile 2013-03-11 13:32:02 +01:00
queue.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
range.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
ratelimit.h stream: fix ratelimit_set_speed 2012-11-30 11:33:24 +01:00
rng-random.h qom: move include files to include/qom/ 2012-12-19 08:31:32 +01:00
rng.h qom: move include files to include/qom/ 2012-12-19 08:31:32 +01:00
sockets.h Add a TPM Passthrough backend driver implementation 2013-03-12 13:40:55 -05:00
thread-posix.h Disable semaphores fallback code for OpenBSD 2012-12-28 16:11:52 +00:00
thread-win32.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
thread.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
timer.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
tls.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
typedefs.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
uri.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
xattr.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00