mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-23 01:37:27 +00:00
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:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user