Received: from eggs.gnu.org ([2001:4830:134:3::10]:57712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Urmdp-0005GS-AF for qemu-devel@nongnu.org; Wed, 26 Jun 2013 06:07:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Urmdo-0004XE-7X for qemu-devel@nongnu.org; Wed, 26 Jun 2013 06:07:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Urmdn-0004X9-WA for qemu-devel@nongnu.org; Wed, 26 Jun 2013 06:07:56 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r5QA7srF010674 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 26 Jun 2013 06:07:54 -0400 From: Markus Armbruster References: <1372055699-13501-1-git-send-email-akong@redhat.com> <20130626031532.GA2341@amosk.info> Date: Wed, 26 Jun 2013 12:07:53 +0200 In-Reply-To: <20130626031532.GA2341@amosk.info> (Amos Kong's message of "Wed, 26 Jun 2013 11:15:32 +0800") Message-ID: <87vc51i3ra.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH for mst/pci] output nc->name in NIC_RX_FILTER_CHANGED event List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amos Kong Cc: qemu-devel@nongnu.org, mst@redhat.com Amos Kong writes: > On Mon, Jun 24, 2013 at 02:34:59PM +0800, Amos Kong wrote: >> netclient 'name' entry in event is useful for management to know >> which device is changed. n->netclient_name is not always set. >> This patch changes to use nc->name. If we don't assign 'id', >> qemu will set a generated name to nc->name. > > > IRC: akong, what do other events include? name or id? > > I just checked QMP/qmp-event.txt, they all use 'device name'. > (eg: BLOCK_IO_ERROR, DEVICE_DELETED, DEVICE_TRAY_MOVED, BLOCK_JOB_*) > > If we assign 'id' for -device, device name will be set to id. > Otherwise, a generated device name will set to some device. DEVICE_DELETED uses "device" (the qdev ID) and "path" (the QOM path). For reasons I don't understand, it sets "path" only when the device has no qdev ID. That should be cleaned up.