Skip to contentSkip to conversation

vtpm state machine fix

PATCH New Stefan Berger 1 participant 1 message Mar 10, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vtpm state machine fix

Changeset 9134 introduced a caching mechanism when xenbus_switch_state is invoked. This causes a problem in the resume part of a suspend-resume cycle due to the backend not seeing that a state in the frontend was set. This patch fixes this in the TPM frontend driver.

xen-unstable.hg/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c +2 -1
Index: xen/xen-unstable.hg/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c
===================================================================
@@ -310,7 +310,8 @@ again:
 		goto abort_transaction;
 	}
 
-	err = xenbus_switch_state(dev, xbt, XenbusStateInitialised);
+	err = xenbus_printf(xbt, dev->nodename,
+	                    "state", "%d", XenbusStateInitialised);
 	if (err) {
 		goto abort_transaction;
 	}

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