Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwzYz-0007cO-SH for qemu-devel@nongnu.org; Wed, 31 Mar 2010 11:10:37 -0400 Received: from [140.186.70.92] (port=59222 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwzYx-0007aK-OM for qemu-devel@nongnu.org; Wed, 31 Mar 2010 11:10:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwzYq-0001Dy-Hw for qemu-devel@nongnu.org; Wed, 31 Mar 2010 11:10:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4963) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwzYp-0001Cd-Rt for qemu-devel@nongnu.org; Wed, 31 Mar 2010 11:10:28 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2VFAO9F007167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 31 Mar 2010 11:10:25 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH 2/2] Added monitor commands: 'keyboard_set' and 'info keybaord' References: <24a0619c9d6c07c5b10f5aff19478ff3040c4af8.1269373411.git.shaharh@redhat.com> <20100326184030.GA25061@redhat.com> Date: Wed, 31 Mar 2010 17:10:22 +0200 In-Reply-To: <20100326184030.GA25061@redhat.com> (Shahar Havivi's message of "Fri, 26 Mar 2010 21:40:31 +0300") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Shahar Havivi Cc: qemu-devel@nongnu.org Shahar Havivi writes: > On Fri, Mar 26, 2010 at 10:57:58AM +0100, Markus Armbruster wrote: [...] >> Since the index is not a stable identifier of keyboards, and we support >> multiple monitors, you're prone to remove the wrong keyboard. >> >> Monitor#1 Monitor#2 >> "info keyboard" to find the index >> unplug a keyboard, invalidating >> index >> keyboard_set >> >> I think it's best to use a stable ID, like we do in other places. We >> commonly let the user specify it, e.g. as id=ID in -netdev, -device and >> elswhere. > What do we do when user not specify id for device? Two obvious options: make one up (problem: clashes), or stipulate "if you want to keyboard_set this keyboard, you must specify an id for it". [...]