[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH]Fix a restored domain cannot use mouse and keyboard


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: SUZUKI Kazuhiro <kaz@xxxxxxxxxxxxxx>
  • Date: Fri, 08 Feb 2008 17:42:44 +0900 (JST)
  • Delivery-date: Fri, 08 Feb 2008 00:43:33 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

Signed-off-by: Kazuhiro Suzuki <kaz@xxxxxxxxxxxxxx>
diff -r 5c61cd349b20 drivers/xen/fbfront/xenkbd.c
--- a/drivers/xen/fbfront/xenkbd.c      Thu Feb 07 10:33:19 2008 +0000
+++ b/drivers/xen/fbfront/xenkbd.c      Fri Feb 08 17:27:49 2008 +0900
@@ -193,6 +193,8 @@ static int xenkbd_resume(struct xenbus_d
        struct xenkbd_info *info = dev->dev.driver_data;
 
        xenkbd_disconnect_backend(info);
+       info->page->in_cons = info->page->in_prod = 0;
+       info->page->out_cons = info->page->out_prod = 0;
        return xenkbd_connect_backend(dev, info);
 }
 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.