ia64/xen-unstable

changeset 14007:ac570a3c79a2

hvm, vtpm: Fix wait for an outstanding response.
Post the interrupt upon reception of the response and adapt the
state machine.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author kfraser@localhost.localdomain
date Mon Feb 19 15:51:46 2007 +0000 (2007-02-19)
parents ee6e484403a9
children 3b7bdb7bd130
files tools/ioemu/hw/tpm_tis.c
line diff
     1.1 --- a/tools/ioemu/hw/tpm_tis.c	Mon Feb 19 15:50:29 2007 +0000
     1.2 +++ b/tools/ioemu/hw/tpm_tis.c	Mon Feb 19 15:51:46 2007 +0000
     1.3 @@ -769,6 +769,8 @@ static void tpm_save(QEMUFile* f,void* o
     1.4              if (n > 0) {
     1.5                  if (IS_VALID_LOC(s->active_loc)) {
     1.6                      s->loc[s->active_loc].sts = STS_VALID | STS_DATA_AVAILABLE;
     1.7 +                    s->loc[s->active_loc].state = STATE_COMPLETION;
     1.8 +                    tis_raise_irq(s, s->active_loc, INT_DATA_AVAILABLE);
     1.9                  }
    1.10                  /* close the connection with the vTPM for good */
    1.11                  close_vtpm_channel(s, 1);