Received: from eggs.gnu.org ([2001:4830:134:3::10]:55893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f14ZE-0007W2-04 for qemu-devel@nongnu.org; Wed, 28 Mar 2018 02:28:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f14ZA-0004IG-TF for qemu-devel@nongnu.org; Wed, 28 Mar 2018 02:28:16 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:34822 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f14ZA-0004Hx-Ob for qemu-devel@nongnu.org; Wed, 28 Mar 2018 02:28:12 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0F02E4040853 for ; Wed, 28 Mar 2018 06:28:08 +0000 (UTC) References: <1520857250-12935-1-git-send-email-thuth@redhat.com> <9d059301-fa9f-6303-5806-a2e6f7917ca5@redhat.com> <7a3f63c9-7778-31f0-518a-5872c41c09c3@redhat.com> <06bda6b5-f496-50d8-de4b-6f417d037908@redhat.com> From: Jason Wang Message-ID: <586a6bdd-d0ea-6d4f-4967-6fe3ee1d4c1d@redhat.com> Date: Wed, 28 Mar 2018 14:27:59 +0800 MIME-Version: 1.0 In-Reply-To: <06bda6b5-f496-50d8-de4b-6f417d037908@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3] qemu-doc: Rework the network options chapter to make "-net" less prominent List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , qemu-devel@nongnu.org Cc: Paolo Bonzini On 2018=E5=B9=B403=E6=9C=8828=E6=97=A5 14:03, Thomas Huth wrote: > On 28.03.2018 04:59, Jason Wang wrote: >> >> On 2018=E5=B9=B403=E6=9C=8827=E6=97=A5 21:16, Thomas Huth wrote: >>>>> =C2=A0=C2=A0 # launch vde switch >>>>> =C2=A0=C2=A0 vde_switch -F -sock /tmp/myswitch >>>>> =C2=A0=C2=A0 # launch QEMU instance >>>>> -qemu-system-i386 linux.img -net nic -net vde,sock=3D/tmp/myswitch >>>>> +qemu-system-i386 linux.img -nic vde,sock=3D/tmp/myswitch >>>> I think we should use -netdev here? >>> I've had that in the original version of this patch, but Paolo sugges= ted >>> to use -nic instead since this is more "user-friendly": >>> >>> https://lists.gnu.org/archive/html/qemu-devel/2018-02/msg05258.html >>> >>> I personally don't mind whether we use "-netdev" or "-nic" in the >>> examples, as long as we finally get rid of "-net" there... >> Right. >> >>> Please let me >>> know which way you prefer, so I can respin the patch again if necessa= ry. >>> >>> =C2=A0 Thomas >>> >> But I think we should be consistent: in your patch some "-net" was >> replaced by "-nic", but others were replaced by "-netdev". > These are *examples*, and I think it's good to give the users examples > for both ways of specifying a network connection. I'd really like to > avoid that people think that -nic is the only way of specifying such a > device, since you might not be able to configure all properties of the > NIC this way. On the other hand, -device + -netdev is really way more t= o > type, so we should also not only show this kind of examples. Thus a > mixture between both ways sounds like the right solution to me. But if > you disagree, let me know, then I can rework the patch again to either > only use -nic or only use -netdev in the examples. > > Thomas Ok. I get your point. I will apply v3 as is. Thanks