[libvirt] [PATCH 2/2] network: populate interface pool immediately when network is started

Eric Blake eblake at redhat.com
Mon Aug 11 20:17:32 UTC 2014


On 08/11/2014 12:59 PM, Laine Stump wrote:
> When a network is defined with "<pf dev='xyz'/>", libvirt will query
> sysfs to learn the list of all virtual functions (VF) associated with
> that Physical Function (PF) then populate the network's interface pool
> accordingly. This action was previously done only when the first guest
> actually requested an interface from the network. This patch changes
> it to populate the pool immediately when the network is started. This
> way any problems with the PF or its VFs will become apparent sooner.
> 
> Note that we can't remove the old calls to networkCreateInterfacePool
> that happen whenever a guest requests an interface - doing so would be
> asking for failures on hosts that had libvirt upgraded with a network
> that had been started but not yet used.
> 
> This resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1047818
> ---
>  src/network/bridge_driver.c | 212 ++++++++++++++++++++++----------------------
>  1 file changed, 107 insertions(+), 105 deletions(-)
> 

ACK

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140811/2b30644c/attachment-0001.sig>


More information about the libvir-list mailing list