[Qemu-devel] [PATCH] Add a TPM Passthrough backend driver implementation

2011-08-12 Thread Andreas Niederl
Usage example: qemu-system-x86_64 -tpmdev passthrough,id=tpm0,path=/dev/tpm0 \ -device tpm-tis,tpmdev=tpm0 \ -cdrom test.iso -boot d Regards, Andreas Niederl [1] http://trustedjava.sourceforge.net/ Signed-off-by: Andreas Niederl --- Makefile.tar

Re: [Qemu-devel] [PATCH V7 12/13] Support for taking measurements when kernel etc. are passed to Qemu

2011-08-12 Thread Andreas Niederl
this. I'm not familiar with Fedora's nss packaging but maybe you can also drop the check for nss-softokn in favor of nss with pkg-config. Regards, Andreas commit 43c8469eac29fe941d699e8cdd962fc4f0e97cc2 Author: Andreas Niederl Date: Fri Aug 12 14:34:47 2011 +0200 Use public N

Re: [Qemu-devel] [PATCH V7 13/13] Add a TPM backend null driver implementation

2011-08-12 Thread Andreas Niederl
make[1]: *** [tpm_null.o] Error 1 The attached patch fixes this. Regards, Andreas commit a4f91be3b14c412d47a711505edf9be8816dde26 Author: Andreas Niederl Date: Fri Aug 12 14:39:48 2011 +0200 Fix uninitialized variable warning in tpm_null driver diff --git a/hw/tpm_null.c b/hw/tpm_null.c

Re: [Qemu-devel] [SeaBIOS] [PATCH V6 1/9] Add an implementation of a TPM TIS driver

2011-08-12 Thread Andreas Niederl
065be9bee0a0f13cdcc266161c273bd3155e6eb8 (HEAD, t/libtpms-V6) Author: Andreas Niederl Date: Fri Aug 12 15:47:27 2011 +0200 Move tpm_drivers[] declaration to tpm_drivers.h diff --git a/src/tcgbios.c b/src/tcgbios.c index 111fe8a..ae52520 100644 --- a/src/tcgbios.c +++ b/src/tcgbios.c @@ -86,8 +86,6 @@ static

Re: [Qemu-devel] [PATCH 1/5] Add TPM 1.2 device interface

2011-02-24 Thread Andreas Niederl
On 02/18/2011 05:37 PM, Stefan Berger wrote: [...] > I have a tpm_tis.c with major changes in it getting rid of the polling, > closer to specs that passes a test suite and a registerable backend as > well that has several more interface functions, due to support for > snapshotting etc. Unfortunatel

Re: [Qemu-devel] [PATCH 2/5] Provide SSDT for enabled TPM device

2011-02-21 Thread Andreas Niederl
On 02/18/2011 06:02 PM, Stefan Berger wrote: [...] > Does it show up in Linux? I am trying to find the code that connects it > to the RSDT, but don't see any. Yes, it does. QEMU can provide ACPI tables over a BIOS config I/O port. SeaBIOS reads these in src/acpi.c:acpi_bios_init() and builds the

Re: [Qemu-devel] [PATCH 1/5] Add TPM 1.2 device interface

2011-02-21 Thread Andreas Niederl
On 02/18/2011 10:03 PM, Stefan Berger wrote: > On 02/18/2011 10:33 AM, Andreas Niederl wrote: [...] >> +static ISADeviceInfo tpm_info = { >> +.init = tpm_init, >> +.qdev.name = "tpm", >> +.qdev.desc = "TPM TIS Interface&q

Re: [Qemu-devel] [PATCH 1/5] Add TPM 1.2 device interface

2011-02-21 Thread Andreas Niederl
On 02/18/2011 09:27 PM, Stefan Berger wrote: > On 02/18/2011 12:37 PM, Andreas Niederl wrote: [...] >> So I'm guessing that this library is not publicly available right now? > Not via the fedora repository at least. So yum install does not work, yet. Is the source code avai

Re: [Qemu-devel] [PATCH 1/5] Add TPM 1.2 device interface

2011-02-18 Thread Andreas Niederl
On 02/18/2011 05:37 PM, Stefan Berger wrote: > On 02/18/2011 10:33 AM, Andreas Niederl wrote: >> This implementation is based on the TPM 1.2 interface for virtualized TPM >> devices from the Xen-4.0.0 ioemu-qemu-xen fork. >> >> A backend driver infrastructure is

[Qemu-devel] [PATCH 5/5] Adapt TPM host backend to use threadlets

2011-02-18 Thread Andreas Niederl
Signed-off-by: Andreas Niederl --- Makefile.objs |3 - hw/tpm_host_backend.c | 111 ++--- 2 files changed, 32 insertions(+), 82 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index 55fd6b5..5209a9b 100644 --- a/Makefile.objs

[Qemu-devel] [PATCH 4/5] Add configure script and command line options for TPM interface.

2011-02-18 Thread Andreas Niederl
Signed-off-by: Andreas Niederl --- configure |9 + qemu-config.c | 16 qemu-config.h |1 + qemu-options.hx |6 ++ vl.c| 22 ++ 5 files changed, 54 insertions(+), 0 deletions(-) diff --git a/configure b

[Qemu-devel] [PATCH 1/5] Add TPM 1.2 device interface

2011-02-18 Thread Andreas Niederl
This implementation is based on the TPM 1.2 interface for virtualized TPM devices from the Xen-4.0.0 ioemu-qemu-xen fork. A backend driver infrastructure is provided to be able to use different device backends. Signed-off-by: Andreas Niederl --- Makefile.objs|3 + hw/tpm.h

[Qemu-devel] [PATCH 2/5] Provide SSDT for enabled TPM device

2011-02-18 Thread Andreas Niederl
Signed-off-by: Andreas Niederl --- Makefile.target |3 +++ hw/acpi.c | 28 hw/pc.h |1 + hw/tpm.h|2 ++ hw/tpm_acpi.c | 40 hw/tpm_ssdt.dsl | 55

[Qemu-devel] [PATCH 3/5] Add TPM host passthrough device backend.

2011-02-18 Thread Andreas Niederl
A separate thread is used for I/O to the host TPM device because the Linux TPM driver does not allow non-blocking I/O. Signed-off-by: Andreas Niederl --- Makefile.objs |5 +- hw/tpm_backend.c |1 + hw/tpm_host_backend.c | 282

[Qemu-devel] [PATCH 0/5] TPM device emulation

2011-02-18 Thread Andreas Niederl
which ships a set of unit tests itself and is available on [2]. Testing can also be done using the character device provided by the TPM emulator [3] with the tpmd_dev kernel module. This patch series is used in the acTvSM trusted virtualization platform which also is available on [2]. Regards,

[Qemu-devel] [PATCH 1/7] Add TPM 1.2 device interface

2010-12-13 Thread Andreas Niederl
This implementation is based on the TPM 1.2 interface for virtualized TPM devices from the Xen-4.0.0 ioemu-qemu-xen fork. A backend driver infrastructure is provided to be able to use different device backends. Signed-off-by: Andreas Niederl --- hw/tpm.h |6 + hw/tpm_backend.c

[Qemu-devel] Re: [PATCH 3/7] Add configure script and command line options for TPM interface.

2010-12-13 Thread Andreas Niederl
On 12/13/2010 07:04 PM, Andreas Niederl wrote: [...] Sorry for the wrong patch count in the subject. Total number is 4. Regards, Andreas smime.p7s Description: S/MIME Cryptographic Signature

[Qemu-devel] [PATCH 2/7] Add TPM host passthrough device backend.

2010-12-13 Thread Andreas Niederl
Threadlets are used for asynchronous I/O to the host TPM device because the Linux TPM driver does not allow for non-blocking I/O. This patch is based on the Threadlets patch series v12 posted on this list. Signed-off-by: Andreas Niederl --- hw/tpm_backend.c |1 + hw/tpm_host_backend.c

[Qemu-devel] [PATCH 3/7] Add configure script and command line options for TPM interface.

2010-12-13 Thread Andreas Niederl
Signed-off-by: Andreas Niederl --- Makefile.objs |3 +++ configure |9 + qemu-config.c | 16 qemu-config.h |1 + qemu-options.hx |6 ++ vl.c| 29 + 6 files changed, 64 insertions(+), 0 deletions

[Qemu-devel] [PATCH 1/3] Add TPM 1.2 host device passthrough interface

2010-08-25 Thread Andreas Niederl
This implementation is based on the TPM 1.2 interface for virtualized TPM devices from the Xen-4.0.0 ioemu-qemu-xen fork. A separate thread is used for I/O to the host TPM device because the Linux TPM driver does not allow for non-blocking I/O. Signed-off-by: Andreas Niederl

[Qemu-devel] [PATCH 2/3] Add command line options for TPM interface

2010-08-25 Thread Andreas Niederl
Signed-off-by: Andreas Niederl --- hw/pc.h |5 + qemu-config.c | 12 qemu-config.h |1 + qemu-options.hx |6 ++ vl.c| 25 + 5 files changed, 49 insertions(+), 0 deletions(-) diff --git a/hw/pc.h b/hw/pc.h index

[Qemu-devel] [PATCH 3/3] seabios: Add DSDT entry for an emulated TPM 1.2 device

2010-08-25 Thread Andreas Niederl
Signed-off-by: Andreas Niederl --- src/acpi-dsdt.dsl | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/src/acpi-dsdt.dsl b/src/acpi-dsdt.dsl index cc31112..38ccde9 100644 --- a/src/acpi-dsdt.dsl +++ b/src/acpi-dsdt.dsl @@ -428,6 +428,28