Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NupMb-0004yz-4y for qemu-devel@nongnu.org; Thu, 25 Mar 2010 11:52:53 -0400 Received: from [140.186.70.92] (port=55193 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NupMZ-0004wt-NB for qemu-devel@nongnu.org; Thu, 25 Mar 2010 11:52:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NupMY-0003yW-6N for qemu-devel@nongnu.org; Thu, 25 Mar 2010 11:52:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1684) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NupMX-0003yS-UV for qemu-devel@nongnu.org; Thu, 25 Mar 2010 11:52:50 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2PFqnGH025614 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 25 Mar 2010 11:52:49 -0400 From: Markus Armbruster References: <1269251333-20821-1-git-send-email-armbru@redhat.com> <1269251333-20821-12-git-send-email-armbru@redhat.com> <20100323190632.46d14a38@redhat.com> Date: Thu, 25 Mar 2010 16:52:46 +0100 In-Reply-To: <20100323190632.46d14a38@redhat.com> (Luiz Capitulino's message of "Tue, 23 Mar 2010 19:06:32 -0300") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH v2 11/11] monitor: New commands netdev_add, netdev_del List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: qemu-devel@nongnu.org Luiz Capitulino writes: > On Mon, 22 Mar 2010 10:48:53 +0100 > Markus Armbruster wrote: > >> Monitor commands to go with -netdev. >> >> Signed-off-by: Markus Armbruster >> --- >> net.c | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- >> net.h | 2 + >> qemu-monitor.hx | 30 ++++++++++++++++++++++++++++ >> 3 files changed, 88 insertions(+), 1 deletions(-) >> >> diff --git a/net.c b/net.c >> index 1f3c39c..80e9025 100644 >> --- a/net.c >> +++ b/net.c >> @@ -1122,7 +1122,7 @@ int net_client_init(Monitor *mon, QemuOpts *opts, int is_netdev) >> } >> >> qerror_report(QERR_INVALID_PARAMETER_VALUE, "type", >> - "a network backend type"); >> + "a network client type"); >> return -1; >> } >> >> @@ -1186,6 +1186,61 @@ void net_host_device_remove(Monitor *mon, const QDict *qdict) >> qemu_del_vlan_client(vc); >> } >> >> +/** >> + * do_netdev_add(): Add a host network device >> + * >> + * Argument qdict contains >> + * - "type": the device type, "tap", "user", ... >> + * - "id": the device's ID (must be unique) > > Consecutive calls of this command in qmp with the same id succeeds, but > I couldn't understand why. Thinko. I'll respin. > Other than that looks ok, although I'm not familiar with the device > handling machinery in qemu. v3's the charm, I hope. Thanks! [...]