From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kouichi Yasaki Subject: [PATCH][BIOS]Fix TPMD and QEMU connection Date: Thu, 20 Dec 2007 09:53:11 +0900 Message-ID: <4769BCF7.1040409@jp.fujitsu.com> References: <46EF1617.8020705@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000908060700090800050106" Return-path: In-Reply-To: <46EF1617.8020705@jp.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------000908060700090800050106 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit 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 Thanks Kouichi YASAKI --------------000908060700090800050106 Content-Type: text/x-patch; name="tpm_tis_fix.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="tpm_tis_fix.diff" 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); + } } /****************************************************************************/ --------------000908060700090800050106 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------000908060700090800050106--