From: Keir Fraser Subject: Re: [PATCH]Fix a restored domain cannot use mouse and keyboard Date: Tue, 12 Feb 2008 10:09:08 +0000 Message-ID: References: <873aryjzqh.fsf@pike.pond.sub.org> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <873aryjzqh.fsf@pike.pond.sub.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Markus Armbruster , SUZUKI Kazuhiro Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 12/2/08 09:22, "Markus Armbruster" wrote: > I'm not sure your fix is completely safe. Once the frontend exposed > the shared page to the backend, it is not supposed to touch in_prod > and out_cons, and it may only increase in_cons and out_prod. I think > you better do > > xenkbd_disconnect_backend(info); > + info->page->in_cons = info->page->in_prod; > return xenkbd_connect_backend(dev, info); The page is not exposed to the new backend until xenkbd_connect_backend(). So the originally proposed fix is correct in this regard, I think. -- Keir