mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
5934f30fde
Until now, the only way to get some networking with cloud-hypervisor was to let the user create a TAP interface first, and then to provide the name of this interface to the VMM. This patch extend the previous behavior by adding the support for the creation of a brand new TAP interface from the VMM itself. In case no interface name is provided through "tap=<if_name>", we will assume the user wants the VMM to create and set the interface on its behalf, no matter the value of other parameters (ip, mask, and mac). In this same scenario, because the user expects the VMM to create the TAP interface, he can also provide the associated IP address and subnet mask associated with it. In case those values are not provided, some default ones will be picked. No matter the value of "tap", the MAC address will always be set, and if no value is provided, the VMM will come up with a default value for it. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |