From: Stefan Berger Subject: [PATCH] [QEMU-DM] Fix path where suspending with outstanding request Date: Fri, 16 Feb 2007 16:40:21 -0500 Message-ID: <1171662021.11194.10.camel@lt2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-WzwjbHsNaG2TDl1K66SJ" Return-path: 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 Cc: keir@xensource.com List-Id: xen-devel@lists.xenproject.org --=-WzwjbHsNaG2TDl1K66SJ Content-Type: text/plain Content-Transfer-Encoding: 7bit This fixes the code path where an outstanding response is being waited for. Post the interrupt upon reception of the response and adapt the state machine. Signed-off-by: Stefan Berger --=-WzwjbHsNaG2TDl1K66SJ Content-Disposition: attachment; filename=tis_resume_fix2.diff Content-Type: text/x-patch; name=tis_resume_fix2.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/ioemu/hw/tpm_tis.c =================================================================== --- root.orig/xen-unstable.hg/tools/ioemu/hw/tpm_tis.c +++ root/xen-unstable.hg/tools/ioemu/hw/tpm_tis.c @@ -769,6 +769,8 @@ static void tpm_save(QEMUFile* f,void* o if (n > 0) { if (IS_VALID_LOC(s->active_loc)) { s->loc[s->active_loc].sts = STS_VALID | STS_DATA_AVAILABLE; + s->loc[s->active_loc].state = STATE_COMPLETION; + tis_raise_irq(s, s->active_loc, INT_DATA_AVAILABLE); } /* close the connection with the vTPM for good */ close_vtpm_channel(s, 1); --=-WzwjbHsNaG2TDl1K66SJ 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 --=-WzwjbHsNaG2TDl1K66SJ--