Re: [Qemu-devel] [PATCH 37/42] tpm: lookup the the TPM interface instead of TIS device

2017-10-10 Thread Marc-André Lureau
Hi - Original Message - > On 10/10/2017 04:21 PM, Eduardo Habkost wrote: > > On Tue, Oct 10, 2017 at 12:56:18AM +0200, Marc-André Lureau wrote: > > [...] > >> -static inline TPMVersion tpm_get_version(void) > >> +static inline TPMIf *tpm_find(void) > >> { > >> -#ifdef CONFIG_TPM > >> -

Re: [Qemu-devel] [PATCH 37/42] tpm: lookup the the TPM interface instead of TIS device

2017-10-10 Thread Stefan Berger
On 10/10/2017 04:21 PM, Eduardo Habkost wrote: On Tue, Oct 10, 2017 at 12:56:18AM +0200, Marc-André Lureau wrote: [...] -static inline TPMVersion tpm_get_version(void) +static inline TPMIf *tpm_find(void) { -#ifdef CONFIG_TPM -Object *obj = object_resolve_path_type("", TYPE_TPM_TIS, NULL);

Re: [Qemu-devel] [PATCH 37/42] tpm: lookup the the TPM interface instead of TIS device

2017-10-10 Thread Stefan Berger
On 10/09/2017 06:56 PM, Marc-André Lureau wrote: This will allow to introduce new devices implementing TPM. Signed-off-by: Marc-André Lureau --- hw/tpm/tpm_int.h | 19 --- include/sysemu/tpm.h | 52 ++-- hw/i386/acpi-build.

Re: [Qemu-devel] [PATCH 37/42] tpm: lookup the the TPM interface instead of TIS device

2017-10-10 Thread Eduardo Habkost
On Tue, Oct 10, 2017 at 12:56:18AM +0200, Marc-André Lureau wrote: [...] > -static inline TPMVersion tpm_get_version(void) > +static inline TPMIf *tpm_find(void) > { > -#ifdef CONFIG_TPM > -Object *obj = object_resolve_path_type("", TYPE_TPM_TIS, NULL); > +Object *obj = object_resolve_path

[Qemu-devel] [PATCH 37/42] tpm: lookup the the TPM interface instead of TIS device

2017-10-09 Thread Marc-André Lureau
This will allow to introduce new devices implementing TPM. Signed-off-by: Marc-André Lureau --- hw/tpm/tpm_int.h | 19 --- include/sysemu/tpm.h | 52 ++-- hw/i386/acpi-build.c | 2 +- 3 files changed, 39 insertions(+), 34 delet