hyperhq / runv

Hypervisor-based Runtime for OCI
Apache License 2.0
826 stars 129 forks source link

qemu: clear persist flag on tap device #667

Closed liwei closed 6 years ago

liwei commented 6 years ago

In the scenario which tap device was not created by qemu but passed in(e.g, with some cni plugin), there was IFF_PERSIST flag set on it, the flag needs to be cleared to make sure tap device removed cleanly on qemu exit.

laijs commented 6 years ago

LGTM