Laine Stump 04711a0f32 network: internal API functions to manage assignment of physdev to guest
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...)
2011-07-21 14:47:19 -04:00
..
2011-07-01 19:58:15 +02:00
2010-05-12 08:41:10 +02:00
2011-07-11 19:38:51 +02:00
2011-04-29 10:21:20 -06:00
2011-04-29 14:26:40 -06:00
2011-03-28 09:55:46 -06:00
2011-06-30 18:04:02 +01:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2011-06-24 08:01:10 -06:00
2011-07-11 19:38:51 +02:00
2011-04-29 10:21:20 -06:00
2010-05-12 08:41:10 +02:00
2011-04-29 10:21:20 -06:00
2010-05-12 08:41:10 +02:00
2011-07-11 09:21:37 -06:00
2011-07-21 10:34:51 -06:00
2009-07-16 15:06:42 +02:00
2010-05-12 08:41:10 +02:00
2010-05-12 08:41:10 +02:00
2010-05-12 08:41:10 +02:00
2011-07-14 07:14:05 -06:00
2010-05-12 08:41:10 +02:00
2010-05-12 08:41:10 +02:00
2011-07-11 19:38:51 +02:00
2011-07-11 19:38:51 +02:00
2011-07-11 19:38:51 +02:00