mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-05 23:44:21 +01:00
Now, template feature can't work on arm64. When using bypass-shared-memory cap to saving sandbox as a template, new sandbox cloning from the template will fail. From initial investigation, it maybe a qemu issue. Further research should be done. To enable template on arm64, this patch adds a switch to offer the capability to open or close the bypass-shared-memory cap. While closing bypass-shared-memory cap, saving vm will occupy more space and consume more time. So increase 300M for mount size and bump the time waiting for migration to 10 seconds. Fixes: #1336 Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
15 lines
399 B
Go
15 lines
399 B
Go
// Copyright (c) 2019 HyperHQ Inc.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
// template implements base vm factory with vm templating.
|
|
|
|
package template
|
|
|
|
// templateDeviceStateSize denotes device state size when
|
|
// mount tmpfs.
|
|
// when bypass-shared-memory is not support like arm64,
|
|
// creating template will occupy more space. That's why we
|
|
// put it here.
|
|
const templateDeviceStateSize = 300
|