Received: from eggs.gnu.org ([2001:4830:134:3::10]:33321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqzXW-00050H-Hg for qemu-devel@nongnu.org; Sat, 09 May 2015 03:51:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqzXT-000719-CC for qemu-devel@nongnu.org; Sat, 09 May 2015 03:51:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqzXT-00070j-37 for qemu-devel@nongnu.org; Sat, 09 May 2015 03:51:11 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t497pAPK025834 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Sat, 9 May 2015 03:51:10 -0400 Date: Sat, 9 May 2015 09:51:01 +0200 From: Thomas Huth Message-ID: <20150509095101.468c85e1@thh440s> In-Reply-To: <554CCAB5.3030000@redhat.com> References: <1431077765-6461-1-git-send-email-thuth@redhat.com> <554CCAB5.3030000@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] net: Change help text to list -netdev instead of -net by default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Jason Wang , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Stefan Hajnoczi , Markus Armbruster On Fri, 08 May 2015 16:39:49 +0200 Paolo Bonzini wrote: > > > On 08/05/2015 11:36, Thomas Huth wrote: > > Looking at the output of "qemu-system-xxx -help", you easily get > > the impression that "-net" is the preferred way instead of "-netdev" > > to specify host network interface, since the "-net" option is > > omnipresent but the "-netdev" option is only listed as a one-liner > > at the end. This is ugly since "-net" is considered as legacy and > > even might be removed one day. Thus, this patch switches the output > > to explain the host network interfaces with the "-netdev" option > > instead, moving the legacy "-net" option into some few lines at > > the end. > > > > Signed-off-by: Thomas Huth > > --- > > qemu-options.hx | 66 ++++++++++++++++++++++++++++++++++----------------------- > > 1 file changed, 39 insertions(+), 27 deletions(-) > > That would be great if it worked for all machine types, but it doesn't. > For example, there's no equivalent of: > > $ qemu-system-arm -net user -net nic -machine versatilepb > > You cannot just use -netdev: > > $ qemu-system-arm -netdev user,id=nd0 -machine versatilepb > Warning: netdev nd0 has no peer > > You cannot use -netdev and -net together: > > $ qemu-system-arm -netdev user,id=nd0 -net nic -machine versatilepb > Warning: vlan 0 is not connected to host network > Warning: netdev nd0 has no peer > > This particular board has a PCI controller, so you can just add a PCI > NIC using -netdev/-device, but still that wouldn't be a match for "-net > user -net nic" (which puts a smc91c111 NIC on sysbus). In most embedded > boards there's not even a PCI controller. > > So the patch is great, but I wouldn't say it's deprecated, because in > practice it isn't. Ok, makes sense, I'll remove the "deprecated" wording. Thomas