Skip to contentSkip to conversation

Fix path where suspending with outstanding request

PATCH New Stefan Berger 1 participant 1 message Feb 16, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix path where suspending with outstanding request

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.

xen-unstable.hg/tools/ioemu/hw/tpm_tis.c +2 -0
Index: 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);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel