Re: [Qemu-devel] [PATCH V20 8/8] Add fd parameter for TPM passthrough driver

2013-01-19 Thread Stefan Berger
On 01/19/2013 10:31 AM, Eric Blake wrote: On 01/18/2013 05:55 PM, Stefan Berger wrote: On 01/18/2013 07:14 PM, Stefan Berger wrote: On 01/18/2013 01:18 PM, Eric Blake wrote: On 01/18/2013 09:02 AM, Stefan Berger wrote: When libvirt forks, the child process inherits the file descriptors, among

Re: [Qemu-devel] [PATCH V20 8/8] Add fd parameter for TPM passthrough driver

2013-01-19 Thread Eric Blake
On 01/18/2013 05:55 PM, Stefan Berger wrote: > On 01/18/2013 07:14 PM, Stefan Berger wrote: >> On 01/18/2013 01:18 PM, Eric Blake wrote: >>> On 01/18/2013 09:02 AM, Stefan Berger wrote: >> When libvirt forks, the child process inherits the file descriptors, >> among them those of the taps and /dev/

Re: [Qemu-devel] [PATCH V20 8/8] Add fd parameter for TPM passthrough driver

2013-01-18 Thread Stefan Berger
On 01/18/2013 07:14 PM, Stefan Berger wrote: On 01/18/2013 01:18 PM, Eric Blake wrote: On 01/18/2013 09:02 AM, Stefan Berger wrote: When libvirt forks, the child process inherits the file descriptors, among them those of the taps and /dev/tpm0. The subsequent execve keeps the file descriptor o

Re: [Qemu-devel] [PATCH V20 8/8] Add fd parameter for TPM passthrough driver

2013-01-18 Thread Stefan Berger
On 01/18/2013 01:18 PM, Eric Blake wrote: On 01/18/2013 09:02 AM, Stefan Berger wrote: Enable the passing of a file descriptor via fd=<..> to access the host's TPM device using the TPM passthrough driver. Do we still need this, or is it sufficient to use path=/dev/fdset/nnn, so that we are reus

[Qemu-devel] [PATCH V20 8/8] Add fd parameter for TPM passthrough driver

2013-01-18 Thread Stefan Berger
Enable the passing of a file descriptor via fd=<..> to access the host's TPM device using the TPM passthrough driver. Signed-off-by: Stefan Berger --- hmp.c| 7 ++- hw/tpm_passthrough.c | 53 qapi-schema.json | 4 +++-