Bug 55421
Summary: | igb VF can't work in KVM guest | ||
---|---|---|---|
Product: | Virtualization | Reporter: | Jay Ren (yongjie.ren) |
Component: | kvm | Assignee: | virtualization_kvm |
Status: | CLOSED INVALID | ||
Severity: | normal | CC: | alex.williamson, jeffrey.t.kirsher |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.9.0-rc1 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
host dmesg
guest dmesg lspci info of the igbvf in guest |
Description
Jay Ren
2013-03-18 15:05:57 UTC
Created attachment 95741 [details]
host dmesg
Created attachment 95751 [details]
guest dmesg
in the dmesg in guest:
igbvf 0000:00:03.0: irq 26 for MSI/MSI-X
igbvf 0000:00:03.0: Invalid MAC Address: 00:00:00:00:00:00
igbvf: probe of 0000:00:03.0 failed with error -5
Created attachment 95761 [details]
lspci info of the igbvf in guest
Further bisected to: commit 5ac6f91d39e0884813dc010e14552143cd1d0d8b Author: Mitch A Williams <mitch.a.williams@intel.com> 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 <mitch.a.williams@intel.com> CC: Andy Gospodarek <andy@greyhouse.net> CC: Stefan Assmann <sassmann@kpanic.de> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Tested-by: Stefan Assmann <sassmann@redhat.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> 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. As this is the latest igb drive change, I'll close this bug. There are two methods to work around or fix this issue. 1. update igbvf driver or kernel of the guest 2. use ip command to set VF's MAC before assigning to a guest (e.g. ip link set eth0 vf 0 mac 00:1E:67:65:93:01 ) |