mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-01 13:34:20 +01:00
With default_maxvcpus = 0 and default_vcpus = 1 settings, the default_vcpus will be set to 0 and leads to starting fail. The default_maxvcpus is not set correctly when it is set to 0, and the default_vcpus is set to 0. The correct action is setting default_maxvcpus to the max number of CPUs or MAX_DRAGONBALL_VCPUS, and the default_vcpus should be set to the desired value if the valuse is between 0 and default_maxvcpus. Fixes: #5110 Signed-off-by: Bin Liu <bin@hyper.sh>
The src/libs directory hosts library crates which may be shared by multiple Kata Containers components
or published to crates.io.
Library Crates
Currently it provides following library crates:
| Library | Description |
|---|---|
| logging | Facilities to setup logging subsystem based on slog. |
| system utilities | Collection of facilities and helpers to access system services. |
| types | Collection of constants and data types shared by multiple Kata Containers components. |
| safe-path | Utilities to safely resolve filesystem paths. |
| test utilities | Utilities to share test code. |