diff options
-rw-r--r-- | tools/ioemu/hw/tpm_tis.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/ioemu/hw/tpm_tis.c b/tools/ioemu/hw/tpm_tis.c index c40a33e677..3c67921822 100644 --- a/tools/ioemu/hw/tpm_tis.c +++ b/tools/ioemu/hw/tpm_tis.c @@ -904,6 +904,11 @@ void tpm_tis_init(SetIRQFunc *set_irq, void *opaque, int irq) memset(s->buffer.buf,0,sizeof(s->buffer.buf)); register_savevm("tpm-tis", 0, 1, tpm_save, tpm_load, s); + + for (c = 0; !IS_COMM_WITH_VTPM(s) && (c < 5); c++) { + open_vtpm_channel(s); + sleep(1); + } } /****************************************************************************/ |