• L
    network: internal API functions to manage assignment of physdev to guest · 04711a0f
    Laine Stump 提交于
    The network driver needs to assign physical devices for use by modes
    that use macvtap, keeping track of which physical devices are in use
    (and how many instances, when the devices can be shared). Three calls
    are added:
    
    networkAllocateActualDevice - finds a physical device for use by the
    domain, and sets up the virDomainActualNetDef accordingly.
    
    networkNotifyActualDevice - assumes that the domain was already
    running, but libvirtd was restarted, and needs to be notified by each
    already-running domain about what interfaces they are using.
    
    networkReleaseActualDevice - decrements the usage count of the
    allocated physical device, and frees the virDomainActualNetDef to
    avoid later accidentally using the device.
    
    bridge_driver.[hc] - the new APIs. When WITH_NETWORK is false, these
    functions are all #defined to be "0" in the .h file (effectively
    becoming a NOP) to prevent link errors.
    
    qemu_(command|driver|hotplug|process).c - add calls to the above APIs
        in the appropriate places.
    
    tests/Makefile.am - we need to include libvirt_driver_network.la
        whenever libvirt_driver_qemu.la is linked, to avoid unreferenced
        symbols (in functions that are never called by the test
        programs...)
    04711a0f
Makefile.am 11.1 KB