]> xenbits.xensource.com Git - qemu-xen-4.2-testing.git/commitdiff
Wait for frontend state Connected before connecting the backend
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 21 May 2010 14:46:55 +0000 (15:46 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 21 May 2010 14:46:55 +0000 (15:46 +0100)
The frontend of the framebuffer set a value (request-abs-pointer) and go
to the state Connected.  The backend must read this value only when the
frontend has the state Connected.

From: Anthony PERARD <anthony.perard@citrix.com>
Tested-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
hw/xen_backend.c

index 76d07ecd384f2dfe27bc6959c67947f339c88616..31ed7b07fb9a19f01d2afee473fefca8bd6ee7ad 100644 (file)
@@ -411,8 +411,7 @@ static int xen_be_try_connect(struct XenDevice *xendev)
 {
     int rc = 0;
 
-    if (xendev->fe_state != XenbusStateInitialised  &&
-       xendev->fe_state != XenbusStateConnected) {
+    if (xendev->fe_state != XenbusStateConnected) {
        if (xendev->ops->flags & DEVOPS_FLAG_IGNORE_STATE) {
            xen_be_printf(xendev, 2, "frontend not ready, ignoring\n");
        } else {