From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: [PATCH] Wait the state Connect of the frontend before connect the backend. Date: Thu, 20 May 2010 14:24:52 -0700 Message-ID: <4BF5A8A4.2050809@goop.org> References: <1274116684-6349-1-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1274116684-6349-1-git-send-email-anthony.perard@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: anthony.perard@citrix.com Cc: xen-devel@lists.xensource.com, Ian Jackson List-Id: xen-devel@lists.xenproject.org On 05/17/2010 10:18 AM, anthony.perard@citrix.com wrote: > From: Anthony PERARD > > 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. > This works well. It should go into git. (Anthony: you'll need to append a "Signed-off-by:" line to be strictly complete.) Tested-by: Jeremy Fitzhardinge J > --- > 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 { > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > >