mirror of https://gitee.com/openkylin/qemu.git
Merge tpm 2017/10/24 v1
-----BEGIN PGP SIGNATURE----- iQEcBAABAgAGBQJZ8BvvAAoJEHWtZYAqC0IRyfMH/RKYj6V+TDQ254tERufKvWNa V1Vw6vwTSqxhCmNT75nKnfveO27NPIs1AcsMWGdnHjsELKCojtBSakbqiVfu1Y38 /uYQ6NlJLzI9S6hBtL2gu4FKMhHIJMBhhkFkXdMscyiHI/exx65iKeLJipA0wkgH ai/irmAUWok1weWFO/Gk8BqGJolJkd3/WrWS69a4OnS6AdOiwlC2FTFs4StLMcJt tZ7eR+O3aMMxzPAkHFeRD1DyZMPqbJTmqv0yZ0BzQqo3SFpPUJfn485vpG63JpB5 Jydf7wQ7/3V6jQavuDqqadrUfQnY5YJOey4oyH4gmocH1Imcb78QMvpzxEA119k= =vsxL -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/stefanberger/tags/pull-tpm-2017-10-24-1' into staging Merge tpm 2017/10/24 v1 # gpg: Signature made Wed 25 Oct 2017 06:06:55 BST # gpg: using RSA key 0x75AD65802A0B4211 # gpg: Good signature from "Stefan Berger <stefanb@linux.vnet.ibm.com>" # gpg: WARNING: This key is not certified with a trusted signature! # gpg: There is no indication that the signature belongs to the owner. # Primary key fingerprint: B818 B9CA DF90 89C2 D5CE C66B 75AD 6580 2A0B 4211 * remotes/stefanberger/tags/pull-tpm-2017-10-24-1: tpm: print buffers received from TPM when debugging vl: remove unnecessary #ifdef CONFIG_TPM tpm: remove unnecessary #ifdef CONFIG_TPM tpm: add stubs tpm: add missing include Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
325a084c1e
|
@ -1544,6 +1544,7 @@ TPM
|
|||
M: Stefan Berger <stefanb@linux.vnet.ibm.com>
|
||||
S: Maintained
|
||||
F: tpm.c
|
||||
F: stubs/tpm.c
|
||||
F: hw/tpm/*
|
||||
F: include/hw/acpi/tpm.h
|
||||
F: include/sysemu/tpm*
|
||||
|
|
|
@ -62,7 +62,7 @@ bt-host.o-cflags := $(BLUEZ_CFLAGS)
|
|||
common-obj-y += dma-helpers.o
|
||||
common-obj-y += vl.o
|
||||
vl.o-cflags := $(GPROF_CFLAGS) $(SDL_CFLAGS)
|
||||
common-obj-y += tpm.o
|
||||
common-obj-$(CONFIG_TPM) += tpm.o
|
||||
|
||||
common-obj-$(CONFIG_SLIRP) += slirp/
|
||||
|
||||
|
|
|
@ -422,6 +422,8 @@ static void tpm_tis_receive_bh(void *opaque)
|
|||
s->loc[locty].r_offset = 0;
|
||||
s->loc[locty].w_offset = 0;
|
||||
|
||||
tpm_tis_show_buffer(&s->loc[locty].r_buffer, "tpm_tis: From TPM");
|
||||
|
||||
if (TPM_TIS_IS_VALID_LOCTY(s->next_locty)) {
|
||||
tpm_tis_abort(s, locty);
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#define QEMU_TPM_H
|
||||
|
||||
#include "qemu/option.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
typedef struct TPMState TPMState;
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ stub-obj-y += runstate-check.o
|
|||
stub-obj-y += set-fd-handler.o
|
||||
stub-obj-y += slirp.o
|
||||
stub-obj-y += sysbus.o
|
||||
stub-obj-y += tpm.o
|
||||
stub-obj-y += trace-control.o
|
||||
stub-obj-y += uuid.o
|
||||
stub-obj-y += vm-stop.o
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* TPM stubs
|
||||
*
|
||||
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
||||
* See the COPYING file in the top-level directory.
|
||||
*/
|
||||
#include "qemu/osdep.h"
|
||||
#include "sysemu/tpm.h"
|
||||
#include "qmp-commands.h"
|
||||
|
||||
int tpm_init(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void tpm_cleanup(void)
|
||||
{
|
||||
}
|
||||
|
||||
TPMInfoList *qmp_query_tpm(Error **errp)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
TpmTypeList *qmp_query_tpm_types(Error **errp)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
TpmModelList *qmp_query_tpm_models(Error **errp)
|
||||
{
|
||||
return NULL;
|
||||
}
|
4
tpm.c
4
tpm.c
|
@ -30,8 +30,6 @@ void tpm_register_model(enum TpmModel model)
|
|||
tpm_models[model] = true;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_TPM
|
||||
|
||||
static const TPMBackendClass *
|
||||
tpm_be_find_by_type(enum TpmType type)
|
||||
{
|
||||
|
@ -192,8 +190,6 @@ int tpm_config_parse(QemuOptsList *opts_list, const char *optarg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_TPM */
|
||||
|
||||
/*
|
||||
* Walk the list of active TPM backends and collect information about them
|
||||
* following the schema description in qapi-schema.json.
|
||||
|
|
Loading…
Reference in New Issue