|
| From: | Stefan Berger |
| Subject: | Re: [Qemu-devel] [PATCH V21 1/7] Support for TPM command line options |
| Date: | Fri, 08 Feb 2013 21:55:48 -0500 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 |
|
On 02/08/2013 05:01 PM, Eric Blake
wrote:
On 02/08/2013 02:42 PM, Stefan Berger wrote: Will fix it. I only used this syntax because the existing '-soundhw ?'. where the latter works similar to -soundhw ? and shows a list of available TPM backends (for example 'passthrough').What is the QMP counterpart command for listing all possible TPM backends? Libvirt refuses to use command-line probing since qemu 1.3, so we need some way for libvirt to get at the same list from QMP without having to use '-tpmdev ?'. Now added query-tpm-models and query-tpm-types listing the below shown enumerations.
Fine, I changed it and also changed it for the command line (6/7). I looked around in this file and searched for '_' versus '-' and found both, rolled the dice afterwards...
Above is not entirely reflecting the real world. What about the following? The backend: { 'type': 'TPMPassthrough', 'data': { 'type' : 'TpmType', 'path':'str', '*cancel-path':'str'} }
{ 'union': 'TPMBE',
'data': { 'tpm-passthrough' : 'TPMPassthrough',
'tpm-future-backend': 'TPMFutureBackend' } }
The hardware device 'model' (frontend):
{ 'type' : 'TPMTis', 'data' : { model : 'TpmModel' }
{ 'union': 'TPMFE',
'data': { 'tpm-tis' : 'TPMTis',
'tpm-future-model': 'TPMFutureModel' } }
{ 'type' : 'TPMInfo'
'data' : { 'id' : 'str', 'model' : 'TPMFE', 'type' : 'TPMBE' }
The user should then see:
{ 'id': 'tpm0',
'model' : { 'model' : 'tpm-tis'},
'type' : { 'type' : 'passthrough', 'path' : '/dev/tpm0' , 'cancel-path' = '/dev/fdset/2' } }
Stefan |
| [Prev in Thread] | Current Thread | [Next in Thread] |