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 reusing common fd passing mechanisms without inventing
yet more variants?
+++ b/qapi-schema.json
@@ -3033,11 +3033,13 @@
#
# @cancel_path: #optional Path to TPM backend device's cancel sysfs entry
#
+# @fd: #optional File descriptor for the TPM backend device
+#
# Since: 1.5.0
##
{ 'type': 'TPMInfo',
'data': {'model': 'str', 'id': 'str', 'type': 'str', '*path': 'str',
- '*cancel_path': 'str' } }
+ '*cancel_path': 'str', '*fd' : 'int' } }
Besides, what integer value would you use for fd? Older commands that
support fd passing did so via 'int' on the command line, but via a 'str'
via QMP (the name associated with the fd when using 'getfd'), since QMP
does not have a way to expose _which_ fd is the right number from qemu's