From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJA9F-0006b9-4v for qemu-devel@nongnu.org; Fri, 22 Mar 2013 18:09:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJA9E-0006u8-5z for qemu-devel@nongnu.org; Fri, 22 Mar 2013 18:09:17 -0400 Sender: Paolo Bonzini Message-ID: <514CD685.3040600@redhat.com> Date: Fri, 22 Mar 2013 23:09:09 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1363971468-21154-1-git-send-email-pbonzini@redhat.com> <514CCF04.4070408@linux.vnet.ibm.com> In-Reply-To: <514CCF04.4070408@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qemu-bridge-helper: force usage of a very high MAC address for the bridge List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Corey Bryant Cc: qemu-devel@nongnu.org, qemu-stable@nongnu.org Il 22/03/2013 22:37, Corey Bryant ha scritto: > Is it desirable to change a mac address under the covers? This is the TAP mac address. It is unrelated to the guest's MAC address. It is a random link-local address, all this patch does is make it less random. > Also it seems like this might be better if it was optional. > qemu-bridge-helper can take command line options like this: > > -net tap,helper="/usr/local/libexec/qemu-bridge-helper --br=br0" > > Perhaps adding a --macaddr option is a better approach? Adding a --macaddr=00:11:... option to force a _particular_ MAC address could also be useful (if only to help associating guests' MAC addresses with tap interfaces; the only difference would be the initial 0xFE byte). But it is not easily done in QEMU because MAC addresses are a -device option, not a -netdev option. This patch fixes the real issue that, when the bridge changes MAC address, there is a small but significant network downtime. See libvirt commit 6ea90b843eff95be6bcbb49a327656fc6f6445ef for reference. What would you make it conditional on? Paolo