]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Fix issue of PF brought down if VF is 8021.Qbh and pci passthrough
authorNishank Trivedi <nistrive@cisco.com>
Thu, 30 Aug 2012 19:27:27 +0000 (15:27 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Thu, 30 Aug 2012 19:27:27 +0000 (15:27 -0400)
commit3044433f29eacd57f98360e688634b42f1d48d56
tree09cbea17fcf4bbc7584c6864765e25d1cab573b6
parent9e995c9a238b1ba69885c0eb66dabb8bcae28d83
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.

Signed-off-by: Nishank Trivedi <nistrive@cisco.com>
AUTHORS
src/util/virnetdevvportprofile.c