Thanks for the FYI, Alex. When we pushed this patch upstream, there was a 
corresponding patch to igbvf that was pushed at the same time. With this patch, 
the VFs detect the zero address and generate a random MAC address themselves. 
The reason for this change is to make the VFs play nicely with udev. The issue 
was originally raised by Stefan Assmann.

With older drivers in the guest, this will cause the issue you noted. Distros 
should cherry-pick the corresponding VF patch.

-Mitch

> -----Original Message-----
> From: Alex Williamson [mailto:[email protected]]
> Sent: Thursday, March 21, 2013 2:32 PM
> To: Williams, Mitch A
> Cc: [email protected]
> Subject: Re: [Bug 55421] igb VF can't work in KVM guest
> 
> Mitch,
> 
> Bugzilla wouldn't let me add you to the CC, so FYI...
> Thanks,
> 
> Alex
> 
> On Thu, 2013-03-21 at 21:29 +0000, [email protected]
> wrote:
> > https://bugzilla.kernel.org/show_bug.cgi?id=55421
> >
> >
> > Alex Williamson <[email protected]> changed:
> >
> >            What    |Removed                     |Added
> > --------------------------------------------------------------------------
> --
> >                  CC|
> |[email protected],
> >                    |
> |[email protected]
> >
> >
> >
> >
> > --- Comment #4 from Alex Williamson <[email protected]>  2013-03-
> 21 21:29:09 ---
> > Further bisected to:
> >
> > commit 5ac6f91d39e0884813dc010e14552143cd1d0d8b
> > Author: Mitch A Williams <[email protected]>
> > Date:   Fri Jan 18 08:57:20 2013 +0000
> >
> >     igb: Don't give VFs random MAC addresses
> >
> >     If the user has not assigned a MAC address to a VM, then don't give it
> a
> >     random one. Instead, just give it zeros and let it figure out what to
> do
> >     with them.
> >
> >     Signed-off-by: Mitch Williams <[email protected]>
> >     CC: Andy Gospodarek <[email protected]>
> >     CC: Stefan Assmann <[email protected]>
> >     Tested-by: Aaron Brown <[email protected]>
> >     Tested-by: Stefan Assmann <[email protected]>
> >     Signed-off-by: Jeff Kirsher <[email protected]>
> >
> > So, for whatever reason we no longer assign a random MAC address when
> using the
> > device in a VM (but we do still use one if attached to igbvf in the host).
> I
> > expect we'll eventually see this on all the Intel SR-IOV NICs.  The
> solution is
> > to use the ip command to assign the VF a valid MAC address prior to using
> it
> > with KVM.  I'll let those who made the change defend it further if they
> wish.
> >
> 
> 

N�����r��y����b�X��ǧv�^�)޺{.n�+����h����ܨ}���Ơz�&j:+v�������zZ+��+zf���h���~����i���z��w���?�����&�)ߢf

Reply via email to