forked from kata-containers/runtime
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clh: Consolidate the code path for device unplug
In cloud-hypervisor, it provides a single unified way of unplugging devices, e.g. the `/vm.RemoveDevice` HTTP API. Taking advantage of this API, we can simplify our implementation of `hotplugRemoveDevice` in `clh.go`, where we can consolidate similar code paths for different device unplug (e.g. no need to implement `hotplugRemoveBlockDevice` and `hotplugRemoveVfioDevice` separately). We will only need to retrieve the right `deviceID` based on the type of devices, and use the single unified HTTP API for device unplug. Fixes: kata-containers#3001 Signed-off-by: Bo Chen <chen.bo@intel.com>
- Loading branch information
1 parent
c54378d
commit ec26e48
Showing
2 changed files
with
23 additions
and
41 deletions.
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