Description of problem:
This is a feature request to take a fix for libvirt-0.9.10 package.
More details can be found here -
Version-Release number of selected component (if applicable):
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:
Fixed upstream by v0.10.0-17-g3044433:
Author: Nishank Trivedi <firstname.lastname@example.org>
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
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:
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.
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).
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.