cloud-hypervisor/vmm/src
Sebastien Boeuf d4316d0228 vmm: http: Allow file descriptor to be sent with add-net
In order to let a separate process open a TAP device and pass the file
descriptor through the control message mechanism, this patch adds the
support for sending a file descriptor over to the Cloud Hypervisor
process along with the add-net HTTP API command.

The implementation uses the NetConfig structure mutably to update the
list of fds with the one passed through control message. The list should
always be empty prior to this, as it makes no sense to provide a list of
fds once the Cloud Hypervisor process has already been started.

It is important to note that reboot is supported since the file
descriptor is duplicated upon receival, letting the VM only use the
duplicated one. The original file descriptor is kept open in order to
support a potential reboot.

Fixes #2525

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2021-07-19 09:51:32 +02:00
..
api vmm: http: Allow file descriptor to be sent with add-net 2021-07-19 09:51:32 +02:00
acpi.rs numa: Add optional sgx_epc_sections field to NumaConfig 2021-07-09 14:45:30 +02:00
config.rs numa: Add optional sgx_epc_sections field to NumaConfig 2021-07-09 14:45:30 +02:00
cpu.rs sgx: Add mandatory id field to SgxEpcConfig 2021-07-09 14:45:30 +02:00
device_manager.rs vmm: Split restore device_manager and devices 2021-07-05 22:51:56 +02:00
device_tree.rs vmm: device_manager: Use DeviceTree to store PCI devices 2021-03-18 15:26:25 +01:00
interrupt.rs vmm: Fix clippy warnings on AArch64 2021-06-24 08:59:53 -07:00
lib.rs vmm: Refactor slightly vm_boot and 'control_loop' 2021-06-24 16:01:39 +02:00
memory_manager.rs sgx: Add mandatory id field to SgxEpcConfig 2021-07-09 14:45:30 +02:00
migration.rs
seccomp_filters.rs vmm: Update seccomp filters for HTTP thread 2021-07-15 08:13:48 +00:00
vm.rs numa: Add optional sgx_epc_sections field to NumaConfig 2021-07-09 14:45:30 +02:00