mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-13 21:56:32 +00:00
Merge pull request #2529 from likebreath/clh_remove_deadcode
clh: Remove dead-code on maxClhVcpus
This commit is contained in:
commit
aaa4e5c661
@ -62,7 +62,6 @@ const (
|
|||||||
supportedMinorVersion = 5
|
supportedMinorVersion = 5
|
||||||
defaultClhPath = "/usr/local/bin/cloud-hypervisor"
|
defaultClhPath = "/usr/local/bin/cloud-hypervisor"
|
||||||
virtioFsCacheAlways = "always"
|
virtioFsCacheAlways = "always"
|
||||||
maxClhVcpus = uint32(64)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Interface that hides the implementation of openAPI client
|
// Interface that hides the implementation of openAPI client
|
||||||
@ -795,11 +794,6 @@ func (clh *cloudHypervisor) LaunchClh() (string, int, error) {
|
|||||||
return errStr, cmd.Process.Pid, nil
|
return errStr, cmd.Process.Pid, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// MaxClhVCPUs returns the maximum number of vCPUs supported
|
|
||||||
func MaxClhVCPUs() uint32 {
|
|
||||||
return maxClhVcpus
|
|
||||||
}
|
|
||||||
|
|
||||||
//###########################################################################
|
//###########################################################################
|
||||||
//
|
//
|
||||||
// Cloud-hypervisor CLI builder
|
// Cloud-hypervisor CLI builder
|
||||||
|
@ -47,7 +47,7 @@ func newClhConfig() (HypervisorConfig, error) {
|
|||||||
BlockDeviceDriver: config.VirtioBlock,
|
BlockDeviceDriver: config.VirtioBlock,
|
||||||
MemorySize: defaultMemSzMiB,
|
MemorySize: defaultMemSzMiB,
|
||||||
DefaultBridges: defaultBridges,
|
DefaultBridges: defaultBridges,
|
||||||
DefaultMaxVCPUs: MaxClhVCPUs(),
|
DefaultMaxVCPUs: uint32(64),
|
||||||
SharedFS: config.VirtioFS,
|
SharedFS: config.VirtioFS,
|
||||||
VirtioFSCache: virtioFsCacheAlways,
|
VirtioFSCache: virtioFsCacheAlways,
|
||||||
VirtioFSDaemon: testVirtiofsdPath,
|
VirtioFSDaemon: testVirtiofsdPath,
|
||||||
|
Loading…
Reference in New Issue
Block a user