All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Wait the state Connect of the frontend before connect the backend.
@ 2010-05-17 17:18 anthony.perard
  2010-05-17 17:56 ` Jeremy Fitzhardinge
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: anthony.perard @ 2010-05-17 17:18 UTC (permalink / raw)
  To: xen-devel; +Cc: Anthony PERARD

From: Anthony PERARD <anthony.perard@citrix.com>

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.
---
 hw/xen_backend.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/hw/xen_backend.c b/hw/xen_backend.c
index 76d07ec..31ed7b0 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 {

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-21 15:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-17 17:18 [PATCH] Wait the state Connect of the frontend before connect the backend anthony.perard
2010-05-17 17:56 ` Jeremy Fitzhardinge
2010-05-20 21:24 ` Jeremy Fitzhardinge
2010-05-21 15:23 ` [PATCH] Wait the state Connect of the frontend before connect the backend. [and 1 more messages] Ian Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.