diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2007-12-20 10:43:06 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2007-12-20 10:43:06 +0000 |
commit | b8af4123ed9d2c39b4706724778c47b18b7e3e8f (patch) | |
tree | f26a8f39e34013a6fc437d23bb2b4bfdf808f470 | |
parent | bbe568ca78f47f3e7188154b35e53859d75f8472 (diff) | |
download | xen-b8af4123ed9d2c39b4706724778c47b18b7e3e8f.tar.gz xen-b8af4123ed9d2c39b4706724778c47b18b7e3e8f.tar.bz2 xen-b8af4123ed9d2c39b4706724778c47b18b7e3e8f.zip |
hvm: Fix TPMD and QEMU connection
In HVM domain, MA_Transmit function in tcgbios sometimes become an
error (TCG_NO_RESPONSE). The cause of the error is not to make
connection of QEMU and TPMD instance within a timeout of MA_Transmit
function.
Before the MA_Transmit function was called, the attached patch
corrected so that connection of QEMU and TPMD might be completed.
Signed-off-by: Kouichi YASAKI <yasaki.kouichi@jp.fujitsu.com>
-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); + } } /****************************************************************************/ |