mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 23:38:31 +00:00
clh: Remove the use of deprecated '--memory file=' parameter
[ Port from runtime commit 30b40f5505fd46d23b89eb5fb38301d2f7454f35 ] Along with the release of cloud-hypervisor v0.8.0, this option has been deprecated. clh now enforces to use the alternative controls, e.g. "shared" and "hugepages", which can infer the backing file paths. Also, we don't use "hugepages" in kata, so we are fine now as the "shared" control is already enabled. Fixes: #461 Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
5f2a9fad4d
commit
76a64667d5
@ -221,7 +221,6 @@ func (clh *cloudHypervisor) createSandbox(ctx context.Context, id string, networ
|
||||
// Set initial memomory size of the virtual machine
|
||||
// Convert to int64 openApiClient only support int64
|
||||
clh.vmconfig.Memory.Size = int64((utils.MemUnit(clh.config.MemorySize) * utils.MiB).ToBytes())
|
||||
clh.vmconfig.Memory.File = "/dev/shm"
|
||||
// shared memory should be enabled if using vhost-user(kata uses virtiofsd)
|
||||
clh.vmconfig.Memory.Shared = true
|
||||
hostMemKb, err := getHostMemorySizeKb(procMemInfo)
|
||||
|
Loading…
Reference in New Issue
Block a user