From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nx3xn-0001xh-2c for qemu-devel@nongnu.org; Wed, 31 Mar 2010 15:52:31 -0400 Received: from [140.186.70.92] (port=58483 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nx3xj-0001vY-R3 for qemu-devel@nongnu.org; Wed, 31 Mar 2010 15:52:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nx3xg-0003yw-Rj for qemu-devel@nongnu.org; Wed, 31 Mar 2010 15:52:26 -0400 Received: from mail-pv0-f173.google.com ([74.125.83.173]:49036) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nx3xg-0003yj-N1 for qemu-devel@nongnu.org; Wed, 31 Mar 2010 15:52:24 -0400 Received: by pvc21 with SMTP id 21so49334pvc.4 for ; Wed, 31 Mar 2010 12:52:23 -0700 (PDT) Message-ID: <4BB3A7F4.5010906@codemonkey.ws> Date: Wed, 31 Mar 2010 14:52:20 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH 2/2] Added monitor commands: 'keyboard_set' and 'info keybaord' References: <689f24e27d483de0e3201a9386c772dc241d4178.1270022701.git.shaharh@redhat.com> <20100331193713.GA18849@redhat.com> In-Reply-To: <20100331193713.GA18849@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Shahar Havivi Cc: qemu-devel@nongnu.org, Markus Armbruster , Juan Quintela On 03/31/2010 02:37 PM, Shahar Havivi wrote: > On Wed, Mar 31, 2010 at 06:58:14PM +0200, Juan Quintela wrote: > >> Date: Wed, 31 Mar 2010 18:58:14 +0200 >> From: Juan Quintela >> To: Markus Armbruster >> Cc: Shahar Havivi, qemu-devel@nongnu.org >> Subject: [Qemu-devel] Re: [PATCH 2/2] Added monitor commands: 'keyboard_set' >> and 'info keybaord' >> >> Markus Armbruster wrote: >> >>> Juan Quintela writes: >>> >>>> I still think that adding an "id" property as in markus proposal would >>>> be neat. Otherwise I don't know how you are going to distinguish >>>> between two keyboards with the same name. >>>> >>> If I understand the patch correctly (only time for a quick skim today), >>> the keyboard receives a numeric ID when it is created, and keyboard_set >>> identifies it by that ID. Yes, a user-defined ID would be nicer, and >>> consistent with how similar things work. But the numeric ID isn't >>> *wrong*, as far as I can see. >>> >> my problem is that if you add two keyboards of the same type, they will >> receive random index (different ones), now you do info keyboard, and you >> see two keyboard with the same names and different numbers, how do you >> know which of the two given you want to choose? >> >> And no, I don't have magic bullet to make multimonitor/keyboard/mouse >> behave as expected out of given them right id's. >> >> Later, Juan. >> > You right, this is a problem. > As I see it id cannot be force to receive by the user right? > This is already the case with the mouse. Ultimately, I don't think it's a useful problem to attempt to solve. Why would there every be two keyboards of the same type (or two mice)? Regards, Anthony Liguori > Thanks, Shahar. > > >