env: Add 9p msize to kata-env

Adding msize option for 9p as part of the hypervisor
info.

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
Archana Shinde
2018-04-16 09:43:58 -07:00
parent c06af5f5cd
commit 5070fcf74d
2 changed files with 5 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ import (
//
// XXX: Increment for every change to the output format
// (meaning any change to the EnvInfo type).
const formatVersion = "1.0.10"
const formatVersion = "1.0.11"
// MetaInfo stores information on the format of the output itself
type MetaInfo struct {
@@ -84,8 +84,9 @@ type HypervisorInfo struct {
MachineType string
Version string
Path string
Debug bool
BlockDeviceDriver string
Msize9p uint32
Debug bool
}
// ProxyInfo stores proxy details
@@ -280,6 +281,7 @@ func getHypervisorInfo(config oci.RuntimeConfig) HypervisorInfo {
Version: version,
Path: hypervisorPath,
BlockDeviceDriver: config.HypervisorConfig.BlockDeviceDriver,
Msize9p: config.HypervisorConfig.Msize9p,
}
}

View File

@@ -241,6 +241,7 @@ func getExpectedHypervisor(config oci.RuntimeConfig) HypervisorInfo {
Path: config.HypervisorConfig.HypervisorPath,
MachineType: config.HypervisorConfig.HypervisorMachineType,
BlockDeviceDriver: config.HypervisorConfig.BlockDeviceDriver,
Msize9p: config.HypervisorConfig.Msize9p,
}
}