forked from openanolis/dragonball-sandbox
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dbs-virtio-devices: Clear resources when removing virtio devices
This PR implements functionaility of clearing resources for virtio-net and virtio-vsock devices. For virtio-net devices, the removed resource is its event hanlder. For virtio-vsock devices, the removed resources are its event handler and a socket on the host. Fixes: openanolis#273 Signed-off-by: Zizheng Bian <[email protected]> Signed-off-by: Xuewei Niu <[email protected]>
- Loading branch information
1 parent
284accc
commit 7ce416f
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters