Received: from [140.186.70.92] (port=41387 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OR23F-0002R4-KI for qemu-devel@nongnu.org; Tue, 22 Jun 2010 07:54:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OR23D-00087h-Pq for qemu-devel@nongnu.org; Tue, 22 Jun 2010 07:54:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60574) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OR23D-000876-JN for qemu-devel@nongnu.org; Tue, 22 Jun 2010 07:53:59 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] Re: [PATCH v2] QMP: Introduce the documentation for query-netdev and info netdev References: <1276878387-9489-1-git-send-email-miguel.filho@gmail.com> <20100621114259.13e615ee@redhat.com> <4C1F7B64.1040202@siemens.com> <4C207962.2040000@siemens.com> Date: Tue, 22 Jun 2010 13:53:54 +0200 In-Reply-To: <4C207962.2040000@siemens.com> (Jan Kiszka's message of "Tue, 22 Jun 2010 10:50:42 +0200") 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: Jan Kiszka Cc: Luiz Capitulino , Miguel Di Ciurcio Filho , "avi@redhat.com" , "qemu-devel@nongnu.org" Jan Kiszka writes: > Markus Armbruster wrote: >> Jan Kiszka writes: >> >>> Luiz Capitulino wrote: >>>> On Fri, 18 Jun 2010 13:26:27 -0300 >>>> Miguel Di Ciurcio Filho wrote: >>>> >>>>> These commands show the information about active backend network devices. >>>>> >>>>> Signed-off-by: Miguel Di Ciurcio Filho >>>>> --- >>>>> qemu-monitor.hx | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>>>> 1 files changed, 105 insertions(+), 0 deletions(-) >>>>> >>>>> diff --git a/qemu-monitor.hx b/qemu-monitor.hx >>>>> index 9f62b94..8fc5ed6 100644 >>>>> --- a/qemu-monitor.hx >>>>> +++ b/qemu-monitor.hx >>>>> @@ -1674,6 +1674,111 @@ show the various VLANs and the associated devices >>>>> ETEXI >>>>> >>>>> STEXI >>>>> +@item info netdev >>>>> +show information about the current backend network devices >>>>> +ETEXI >>>>> +SQMP >>>>> +query-netdev >>>>> +------------ >>>>> + >>>>> +Each device is represented by a json-object. The returned value is a json-array >>>>> +of all devices. >>>>> + >>>>> +Each json-object contains the following: >>>>> + >>>>> +- "id": the device's ID, must be unique (json-string) >>>> There were some talking about changing this to 'device. Jan, Markus? >>> Only for qdev. Should be a different namespace here. >> >> Huh? >> >> We need to point to the NIC here, i.e. we need a unambigous name. >> Device ID is fine, but it's optional. Canonical qdev path? > > Unless I'm still on the wrong track: 'peer' should point to the > front-end, this ID describes the back-end, and that's not a qdev thing. > Still, dumping the peer's qdev path along its (optional) ID might be > worth a thought. One of us is probably confused, and it could well be me :) Frontend / backend is difficult for the directionally challenged, so let's use "guest NIC" and "host network device". A guest NIC's peer points to a host network device, and vice versa. query-netdev is about host network devices. Thus, peer identifes a guest NIC.