cli: 9p: Add toml configuration for 9p msize

Allows msize for 9p to be configured in the toml file.

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
Archana Shinde
2018-04-13 10:55:20 -07:00
parent 3187a98188
commit cc61ccf9e9
4 changed files with 22 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ func makeRuntimeConfigFileData(hypervisor, hypervisorPath, kernelPath, imagePath
default_memory = ` + strconv.FormatUint(uint64(defaultMemSize), 10) + `
disable_block_device_use = ` + strconv.FormatBool(disableBlock) + `
enable_iothreads = ` + strconv.FormatBool(enableIOThreads) + `
msize_9p = ` + strconv.FormatUint(uint64(defaultMsize9p), 10) + `
[proxy.kata]
path = "` + proxyPath + `"
@@ -143,6 +144,7 @@ func createAllRuntimeConfigFiles(dir, hypervisor string) (config testRuntimeConf
DefaultBridges: defaultBridgesCount,
Mlock: !defaultEnableSwap,
EnableIOThreads: enableIOThreads,
Msize9p: defaultMsize9p,
}
agentConfig := vc.KataAgentConfig{}
@@ -525,6 +527,7 @@ func TestMinimalRuntimeConfig(t *testing.T) {
DefaultBridges: defaultBridgesCount,
Mlock: !defaultEnableSwap,
BlockDeviceDriver: defaultBlockDeviceDriver,
Msize9p: defaultMsize9p,
}
expectedAgentConfig := vc.KataAgentConfig{}