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>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-02-19 15:51:46 +00:00
1 parent 3b5ef8c46d
commit 2c8d71cdf3
1 file changed
+2
+2
View File
@@ -769,6 +769,8 @@ static void tpm_save(QEMUFile* f,void* opaque)
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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.