Fix path where suspending with outstanding request
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.
Signed-off-by Stefan Berger <[email protected]>
xen-unstable.hg/tools/ioemu/hw/tpm_tis.c +2 -0
@@ -769,6 +769,8 @@ static void tpm_save(QEMUFile* f,void* oif (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