Files
kata-containers/src/libs
Bin Liu 53f209af44 libs/kata-types: adjust default_vcpus correctly
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>
2022-10-08 16:52:05 +08:00
..
2022-06-13 13:38:37 +08:00
2022-09-27 19:08:25 +08:00
2022-06-10 18:25:24 +08:00

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.