Red Hat Bugzilla – Bug 853567
Request for taking fix for PF shutdown in 802.1Qbh
Last modified: 2013-02-21 02:22:52 EST
Description of problem: This is a feature request to take a fix for libvirt-0.9.10 package. More details can be found here - http://www.redhat.com/archives/libvir-list/2012-August/msg00462.html http://www.redhat.com/archives/libvir-list/2012-August/msg01954.html Version-Release number of selected component (if applicable): 0.9.10 How reproducible: For a 802.1Qbh device in SR-IOV mode, create one VF with pci passthrough. Shutdown VF and PF interface will go down too. Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Fixed upstream by v0.10.0-17-g3044433: commit 3044433f29eacd57f98360e688634b42f1d48d56 Author: Nishank Trivedi <nistrive@cisco.com> Date: Thu Aug 30 15:27:27 2012 -0400 Fix issue of PF brought down if VF is 8021.Qbh and pci passthrough If a 8021.Qbh network device supports SRIOV and its VF is being used in pci passthrough mode, when the guest is shutdown or destroyed, the PF inteface is also brought down. qemuDomainHostdevNetConfigRestore() finds out the PF for provided hostdev (which is VF) and passes it to virNetDevPortProfileDisassociate() as linkdev. Later, linkdev gets passed to virNetDevSetOnline() where the interface is brought down by clearing IFF_UP flag. Bringing down a PF, when only VF is being brought down is not expected behavior. This patch adds a check so that virNetDevSetOnline() is called only for PF and not if device is a VF.
This is available in libvirt-0.10.1-1.el6 build which can be found for testing in my yum repo at: http://veillard.com/libvirt/6.4/ Daniel
Hi Nishank: I'm QE of libvirt, we don't have 802.1Qbh-capable hardware switch in our SR-IOV now, would you help to verify this bug? build can get with Daniel's link,very thanks in advance.
Hi Zhe, Apologies for delaying this. I used following packages and from this p.o.v., things work as expected (i.e. PF stays up after shutdown). libvirt-client-0.10.2-1.el6.x86_64 libvirt-python-0.10.2-1.el6.x86_64 libvirt-devel-0.10.2-1.el6.x86_64 libvirt-debuginfo-0.10.2-1.el6.x86_64 libvirt-0.10.2-1.el6.x86_64 qemu-kvm-0.12.1.2-2.305.el6.x86_64 qemu-img-0.12.1.2-2.305.el6.x86_64 qemu-kvm-tools-0.12.1.2-2.305.el6.x86_64 Thanks for taking this patch and spending cycles on it.
Very thanks Nishank's help, per comment 6 , move to verify.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0276.html