|
From: | Amarnath Valluri |
Subject: | Re: [Qemu-devel] [PATCH v2 5/9] tmp backend: Add new api to read backend TpmInfo |
Date: | Tue, 2 May 2017 10:17:24 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 04/25/2017 09:59 PM, Eric Blake wrote:
This empty base class(TPMOptions) makes sense when its shared by more than one(Passthrough and Emulator) bakcends.On 04/25/2017 01:51 PM, Stefan Berger wrote:+++ b/qapi-schema.json @@ -5140,6 +5140,16 @@ { 'command': 'query-tpm-types', 'returns': ['TpmType'] } ## +# @TPMOptions: +# +# Base type for TPM options +# +# Since: 2.10 +## +{ 'struct': 'TPMOptions', + 'data': { } } + +## # @TPMPassthroughOptions: # # Information about the TPM passthrough type @@ -5151,20 +5161,9 @@ # # Since: 1.5 ## -{ 'struct': 'TPMPassthroughOptions', 'data': { '*path' : 'str', - '*cancel-path' : 'str'} } +{ 'struct': 'TPMPassthroughOptions', 'base': 'TPMOptions', + 'data': { '*path' : 'str', '*cancel-path' : 'str'} }I don't think that you can change it like this anymore since this is part of the public interface.The change is backwards compatible; it doesn't break any existing QMP usage. It's weird to have an empty base class, though.
- Amarnath
[Prev in Thread] | Current Thread | [Next in Thread] |