Re: [libvirt] [PATCH 3/3] qemu: Pass file descriptor when using TPM passthrough

2015-02-24 Thread Martin Kletzander
On Mon, Feb 23, 2015 at 06:50:48AM -0500, Stefan Berger wrote: Pass the TPM file descriptor to QEMU via command line. Instead of passing /dev/tpm0 we now pass /dev/fdset/10 and the additional parameters -add-fd set=10,fd=20. This addresses the use case when QEMU is started with non-root

Re: [libvirt] [PATCH 3/3] qemu: Pass file descriptor when using TPM passthrough

2015-02-24 Thread Stefan Berger
On 02/24/2015 09:08 AM, Martin Kletzander wrote: On Mon, Feb 23, 2015 at 06:50:48AM -0500, Stefan Berger wrote: Pass the TPM file descriptor to QEMU via command line. Instead of passing /dev/tpm0 we now pass /dev/fdset/10 and the additional parameters -add-fd set=10,fd=20. This addresses the

Re: [libvirt] [PATCH 3/3] qemu: Pass file descriptor when using TPM passthrough

2015-02-24 Thread Martin Kletzander
On Tue, Feb 24, 2015 at 09:15:40AM -0500, Stefan Berger wrote: On 02/24/2015 09:08 AM, Martin Kletzander wrote: On Mon, Feb 23, 2015 at 06:50:48AM -0500, Stefan Berger wrote: Pass the TPM file descriptor to QEMU via command line. Instead of passing /dev/tpm0 we now pass /dev/fdset/10 and the

[libvirt] [PATCH 3/3] qemu: Pass file descriptor when using TPM passthrough

2015-02-23 Thread Stefan Berger
Pass the TPM file descriptor to QEMU via command line. Instead of passing /dev/tpm0 we now pass /dev/fdset/10 and the additional parameters -add-fd set=10,fd=20. This addresses the use case when QEMU is started with non-root privileges and QEMU cannot open /dev/tpm0 for example. Signed-off-by: