[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Changeset 9134 introduced a caching mechanism when xenbus_switch_state



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 1f30a0ac30331c72a7e8e554e162d1a61262fea6
# Parent  3f8123ae34bab8e9068de1d97686b2a7a4608f3f
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.

Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>

diff -r 3f8123ae34ba -r 1f30a0ac3033 
linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c
--- a/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c      Sat Mar 11 
09:47:55 2006
+++ b/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c      Sat Mar 11 
09:49:28 2006
@@ -310,7 +310,8 @@
                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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.