ia64/xen-unstable

changeset 16648:6730dfe7ec69

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>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Dec 20 10:43:06 2007 +0000 (2007-12-20)
parents d0052f37363c
children e2fa79c659e2
files tools/ioemu/hw/tpm_tis.c
line diff
     1.1 --- a/tools/ioemu/hw/tpm_tis.c	Thu Dec 20 10:35:22 2007 +0000
     1.2 +++ b/tools/ioemu/hw/tpm_tis.c	Thu Dec 20 10:43:06 2007 +0000
     1.3 @@ -904,6 +904,11 @@ void tpm_tis_init(SetIRQFunc *set_irq, v
     1.4      memset(s->buffer.buf,0,sizeof(s->buffer.buf));
     1.5  
     1.6      register_savevm("tpm-tis", 0, 1, tpm_save, tpm_load, s);
     1.7 +
     1.8 +    for (c = 0; !IS_COMM_WITH_VTPM(s) && (c < 5); c++) {
     1.9 +       open_vtpm_channel(s);
    1.10 +       sleep(1);
    1.11 +    }
    1.12  }
    1.13  
    1.14  /****************************************************************************/