mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-20 15:01:16 +00:00
In vm_reboot, while build the new vm, the old one pointed by self.vm is not released, that is, the tap opened by self.vm is not closed either. As a result, the associated dev name slot in host kernel is still in use state, which prevents the new build from picking it up as the new opened tap's name, but to use the name in next slot finally. Call self.vm_shutdown instead here since it has call take() on vm reference, which could ensure the old vm is destructed before the new vm build. Signed-off-by: Cathy Zhang <cathy.zhang@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |