This repository has been archived by the owner on May 12, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpuset: don't set cpuset.mems in the guest
Kata doesn't map any numa topologies in the guest. Let's make sure we clear the Cpuset fields before passing container updates to the guest. Without this, we could encounter a runtime failure: ``` process_linux.go:297: applying cgroup configuration for process caused "failed to write 0,1 to cpuset.mems: writea 0,1 to cpuset.mems: write 0,1 to cpuset.mems: write /sys/fs/cgroup/cpuset .... /cpuset.mems: numerical result out of range"": unknown ``` Note, in the future we may want to have a vCPU to guest CPU mapping and still include the cpuset.Cpus. Until we have this support, clear this as well. Fixes: #2176 Depends-on: github.com/kata-containers/tests#2846 Signed-off-by: Eric Ernst <[email protected]>
- Loading branch information