From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=39415 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLwHt-0002HP-CN for qemu-devel@nongnu.org; Tue, 08 Jun 2010 06:44:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLwHn-0008HF-9q for qemu-devel@nongnu.org; Tue, 08 Jun 2010 06:44:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58334) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLwHn-0008H6-1e for qemu-devel@nongnu.org; Tue, 08 Jun 2010 06:43:59 -0400 From: Jes.Sorensen@redhat.com Date: Tue, 8 Jun 2010 12:43:50 +0200 Message-Id: <1275993831-31425-1-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] [PATCH] un-register kbd driver for USB kbd unplug List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: shavivi@redhat.com, qemu-devel@nongnu.org, Jes Sorensen From: Jes Sorensen Hi, This is a fairly simple fix for the problem where the keyboard event handler is left in place when a keyboard is unplugged, eg. USB. The long term solution would be to use Shahar Havivi's multi-keyboard support patch[1] from March, but until Shahar's patch is ready, this one fixes the current crash problem. Cheers, Jes [1]: http://www.mail-archive.com/qemu-devel@nongnu.org/msg28589.html Jes Sorensen (1): un-register kbd driver in case of USB kbd unplug. console.h | 1 + hw/usb-hid.c | 3 +++ input.c | 6 ++++++ 3 files changed, 10 insertions(+), 0 deletions(-)