27a79d96 | 09-Oct-2017 |
Marc-André Lureau <marcandre.lureau@redhat.com> |
tpm: remove init() class method
No backend use it.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by: Stefan Berge
tpm: remove init() class method
No backend use it.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
show more ...
|
f59864ba | 29-Sep-2017 |
Amarnath Valluri <amarnath.valluri@intel.com> |
tpm-backend: Add new API to read backend TpmInfo
TPM configuration options are backend implementation details and shall not be part of base TPMBackend object, and these shall not be accessed directl
tpm-backend: Add new API to read backend TpmInfo
TPM configuration options are backend implementation details and shall not be part of base TPMBackend object, and these shall not be accessed directly outside of the class, hence added a new interface method, get_tpm_options() to TPMDriverOps., which shall be implemented by the derived classes to return configured tpm options.
A new tpm backend api - tpm_backend_query_tpm() which uses _get_tpm_options() to prepare TpmInfo.
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com> Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
show more ...
|
93330cf5 | 29-Sep-2017 |
Amarnath Valluri <amarnath.valluri@intel.com> |
tpm-backend: Made few interface methods optional
This allows backend implementations left optional interface methods. For mandatory methods assertion checks added.
Took the opportunity to remove un
tpm-backend: Made few interface methods optional
This allows backend implementations left optional interface methods. For mandatory methods assertion checks added.
Took the opportunity to remove unused methods: - tpm_backend_get_desc() - TPMDriverOps->handle_startup_error
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Berger<stefanb@linux.vnet.ibm.com> Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
show more ...
|
f35fe5cb | 29-Sep-2017 |
Amarnath Valluri <amarnath.valluri@intel.com> |
tpm-backend: Initialize and free data members in it's own methods
Initialize and free TPMBackend data members in it's own instance_init() and instance_finalize methods.
Took the opportunity to remo
tpm-backend: Initialize and free data members in it's own methods
Initialize and free TPMBackend data members in it's own instance_init() and instance_finalize methods.
Took the opportunity to remove unneeded destroy() method from TpmDriverOps interface as TPMBackend is a Qemu Object, we can use object_unref() inplace of tpm_backend_destroy() to free the backend object, hence removed destroy() from TPMDriverOps interface.
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
show more ...
|
6f4c60e4 | 10-Mar-2017 |
Peter Xu <peterx@redhat.com> |
hostmem: use host_memory_backend_mr_inited() where proper
Use the new interface to boost readability.
Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <1489151370-15453-3-git-send-email-pete
hostmem: use host_memory_backend_mr_inited() where proper
Use the new interface to boost readability.
Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <1489151370-15453-3-git-send-email-peterx@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
show more ...
|
b7bad50a | 22-Mar-2017 |
Halil Pasic <pasic@linux.vnet.ibm.com> |
cryptodev: fix asserting single queue
We already check for queues == 1 in cryptodev_builtin_init and when that is not true raise an error. But before that error is reported the assertion in cryptode
cryptodev: fix asserting single queue
We already check for queues == 1 in cryptodev_builtin_init and when that is not true raise an error. But before that error is reported the assertion in cryptodev_builtin_cleanup kicks in (because object is being finalized and freed).
Let's remove assert(queues == 1) form cryptodev_builtin_cleanup as it does only harm and no good.
Reported-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com> Signed-off-by: Halil Pasic <pasic@linux.vnet.ibm.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Gonglei <arei.gonglei@huawei.com>
show more ...
|