From: Markus Armbruster Subject: Re: [PATCH]Fix a restored domain cannot use mouse and keyboard Date: Fri, 08 Feb 2008 16:17:01 +0100 Message-ID: <87ir0zsck2.fsf@pike.pond.sub.org> References: <20080208.174244.33934644.kaz@flab.fujitsu.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <20080208.174244.33934644.kaz@flab.fujitsu.co.jp> (SUZUKI Kazuhiro's message of "Fri\, 08 Feb 2008 17\:42\:44 +0900 \(JST\)") List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: SUZUKI Kazuhiro Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org SUZUKI Kazuhiro writes: > Hi all, > > I found a bug that a restored domain could not use mouse and > keyboard, when the mouse is moved while saving the domain. > > The following patch fixes it. > > Thanks. > KAZ You didn't tell us what exactly went wrong, so I can only guess. I guess that when the ring buffer fills up completely during save, then xenkbd_resume() finds it full, and as long as it remains full, no further events go in, and no notifications go to the event channel. As long as the (new) backend doesn't get a notification on its event channel, it doesn't take out anything, so the ring buffer remains full. Deadlock. Is that correct? The fix loses the contents of the ring buffer. I guess that's tolerable.