]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: save hostdev network device config before unbinding from host driver
authorLaine Stump <laine@laine.org>
Tue, 28 Feb 2017 21:44:26 +0000 (16:44 -0500)
committerLaine Stump <laine@laine.org>
Mon, 27 Mar 2017 14:19:24 +0000 (10:19 -0400)
commitcceada574e7b057c82927f7939c7491488e67463
tree51973d6cb627ee84dbfc6a9b66fcec5c3a55545f
parentb684734bef7d475a5d3f20acf6d46c4a34e77d63
util: save hostdev network device config before unbinding from host driver

In order to properly restore the original state of an SRIOV VF when
we're finished with it, we need to save the MAC address of the VF
itself (not just the admin MAC address for the VF that is stored in
the PF). But that can only be done when the VF is still bound to the
host's netdev driver, and we have always done the saving of device
config after the VF is already bound to vfio-pci. This patch prepares
us for adding a save of the VF's MAC by calling the function that
saves netconfig earlier in the device preparation, before we've
unbound it from the host netdev driver.
src/util/virhostdev.c