WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH][BIOS]Fix TPMD and QEMU connection

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH][BIOS]Fix TPMD and QEMU connection
From: Kouichi Yasaki <yasaki.kouichi@xxxxxxxxxxxxxx>
Date: Thu, 20 Dec 2007 09:53:11 +0900
Delivery-date: Wed, 19 Dec 2007 16:54:41 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46EF1617.8020705@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <46EF1617.8020705@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)
Hi,

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@xxxxxxxxxxxxxx>

Thanks
  Kouichi YASAKI

diff -r d9ab9eb2bfee tools/ioemu/hw/tpm_tis.c
--- a/tools/ioemu/hw/tpm_tis.c  Sat Dec 15 18:29:27 2007 +0000
+++ b/tools/ioemu/hw/tpm_tis.c  Mon Dec 17 19:46:42 2007 +0900
@@ -904,6 +904,10 @@ void tpm_tis_init(SetIRQFunc *set_irq, v
     memset(s->buffer.buf,0,sizeof(s->buffer.buf));
 
     register_savevm("tpm-tis", 0, 1, tpm_save, tpm_load, s);
+
+    while(!IS_COMM_WITH_VTPM(s)){
+       open_vtpm_channel(s);
+    }
 }
 
 /****************************************************************************/
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>