mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
3b5ef8c46d
commit
2c8d71cdf3
1 file changed
+2
@@ -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);
|
||||
|
||||