From: Ian Jackson Date: Fri, 21 May 2010 14:46:55 +0000 (+0100) Subject: Wait for frontend state Connected before connecting the backend X-Git-Tag: anthony.last_qemu_master~4 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=805ed3b20492d2f4bb465bfda65cedd286e23209;p=qemu-xen-4.2-testing.git Wait for frontend state Connected before connecting the backend 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 Tested-by: Jeremy Fitzhardinge --- diff --git a/hw/xen_backend.c b/hw/xen_backend.c index 76d07ecd3..31ed7b07f 100644 --- a/hw/xen_backend.c +++ b/hw/xen_backend.c @@ -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 {