Received: from eggs.gnu.org ([140.186.70.92]:48833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKWav-0008HX-5l for qemu-devel@nongnu.org; Thu, 12 May 2011 10:10:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKWap-0004ot-H1 for qemu-devel@nongnu.org; Thu, 12 May 2011 10:10:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKWap-0004op-4G for qemu-devel@nongnu.org; Thu, 12 May 2011 10:10:19 -0400 From: Markus Armbruster References: <4DCB486F.70509@landley.net> Date: Thu, 12 May 2011 16:10:11 +0200 In-Reply-To: <4DCB486F.70509@landley.net> (Rob Landley's message of "Wed, 11 May 2011 21:39:43 -0500") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] -net interface association behavior change in current -git. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Rob Landley Cc: blauwirbel@gmail.com, vpalatin@chromium.org, qemu-devel@nongnu.org Rob Landley writes: > In 1.14.0, if I did this: > > qemu -net nic,blah -net user -net nic,blah -net tun,blah > > Then the first nic would be -net user, and the second nic would be -net > tun. In current -git, -net user attaches to the second interface and > -net tun attaches to the first, I.E. the order is reversed. > > Either way the first -nic becomes eth0 in Linux and the second becomes > eth1 (I can manually assign mac addresses in order to confirm which is > which), but eth0 used to be the -net user interface and now eth1 is the > -net user interface. > > I bisected this to commit 60c07d933c66c4b30a83b but I don't know why it > changed the behavior, and I can't find _documentation_ on having > multiple interfaces transports hooked up to the same qemu instance > anyway. (It used to work, but possibly that was an accident?) > > Any ideas? Does it happen with -device and -netdev as well? See docs/qdev-device-use.txt for how to go from -net to -device.