From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3a48-0008Sm-Dt for qemu-devel@nongnu.org; Sun, 18 Apr 2010 15:22:00 -0400 Received: from [140.186.70.92] (port=47931 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3a46-0008Se-RS for qemu-devel@nongnu.org; Sun, 18 Apr 2010 15:22:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3a45-0001Ec-Dz for qemu-devel@nongnu.org; Sun, 18 Apr 2010 15:21:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64841) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3a45-0001EH-6S for qemu-devel@nongnu.org; Sun, 18 Apr 2010 15:21:57 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3IJLsqF026732 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 18 Apr 2010 15:21:55 -0400 Received: from localhost (dhcp-1-229.tlv.redhat.com [10.35.1.229]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3IJLrvp032197 for ; Sun, 18 Apr 2010 15:21:54 -0400 Date: Sun, 18 Apr 2010 22:20:59 +0300 From: Shahar Havivi Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH 0/2 v4] Qemu support for multiple keyboard devices List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org v4: Patch #1 Xen keyboard, added QEMUPutKbdEntry to XenInput in order to properly remove when disconnected (Juan Quintela comment). Rename mouse_index to index (Markus Armbruster comment). Patch #2 Remove un-used variable (Juan Quintela comment). Split do_keyboard_set() to qemu_activate_keyboard_event_handler(), for polling via usb_keyboard_poll() will set the current keyboard (Anthony Liguori comment). Open issue: Set user define id property instead of index based keyboard (mice as well). Qemu support for multiple keyboard devices: Patch #1 adding keyboard is done to qemu tail queue instead of "last added keyboard wins", when removing keyboard via device_del - prev keyboard selected. Patch #2 adding 2 new monitor command to handle keyboard list: 'info keyboard' - show all keyboards and mark the current one 'keyboard_set' - set active keyboard by index as display in 'info keyboard' Shahar Havivi (2): Support for multiple keyboard devices Two new monitor commands: 'info keyboard', 'keyboard_set' console.h | 19 ++++++- hw/adb.c | 2 +- hw/escc.c | 3 +- hw/musicpal.c | 2 +- hw/nseries.c | 4 +- hw/palm.c | 2 +- hw/ps2.c | 2 +- hw/pxa2xx_keypad.c | 3 +- hw/spitz.c | 3 +- hw/stellaris_input.c | 2 +- hw/syborg_keyboard.c | 2 +- hw/usb-hid.c | 16 ++++- hw/xenfb.c | 5 +- input.c | 162 ++++++++++++++++++++++++++++++++++++++++++++++--- monitor.c | 8 +++ qemu-monitor.hx | 17 +++++ 16 files changed, 225 insertions(+), 27 deletions(-)