support SRIOV bond
Now sriov don't have the function of bond. In NFV, we need to add a bond port using sriov. Using two sriov nics as a bond port. But in logic, it's just one port. When create a vm with the bond logic port, we use two sriov vfs in two different pfs.
(luogangyi): This is really useful in our NFV scenario. But I have some questions about the implementation details.
You said 'deliver the bond mode to the Guest through metadata' but you use configuration in compute node to distinguish whether the VM need bond. Since we have to pass information to metadata when we boot the VM and we cannot know bond information before VM scheduled to compute node, it seems impossible to use metadata to deliver bond information.
Can you explain more?
Yes that is a problem about bond in guest OS.
But in fact which computer node is use for bond and which type of bond they use should be fixed at the beginning of the cloud planing. Host aggregate should be used to let different VM which have bond request or not in different host aggregate. So when boot
VM in certain host aggregate, bond info is fixed. So when boot vm we should know the host aggregate and the bond info.