mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-02 05:34:46 +00:00
virtcontainers: Move non QEMU specific constants to hypervisor.go
Hotplugging errors and 9pfs size are not particularily QEMU specific. Signed-off-by: Samuel Ortiz <s.ortiz@apple.com>
This commit is contained in:
parent
10ae05914c
commit
c91035d0e1
@ -14,6 +14,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/kata-containers/kata-containers/src/runtime/pkg/govmm"
|
"github.com/kata-containers/kata-containers/src/runtime/pkg/govmm"
|
||||||
hv "github.com/kata-containers/kata-containers/src/runtime/pkg/hypervisors"
|
hv "github.com/kata-containers/kata-containers/src/runtime/pkg/hypervisors"
|
||||||
"github.com/kata-containers/kata-containers/src/runtime/virtcontainers/device/config"
|
"github.com/kata-containers/kata-containers/src/runtime/virtcontainers/device/config"
|
||||||
@ -70,10 +72,13 @@ const (
|
|||||||
|
|
||||||
// MinHypervisorMemory is the minimum memory required for a VM.
|
// MinHypervisorMemory is the minimum memory required for a VM.
|
||||||
MinHypervisorMemory = 256
|
MinHypervisorMemory = 256
|
||||||
|
|
||||||
|
defaultMsize9p = 8192
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
hvLogger = logrus.WithField("source", "virtcontainers/hypervisor")
|
hvLogger = logrus.WithField("source", "virtcontainers/hypervisor")
|
||||||
|
noGuestMemHotplugErr error = errors.New("guest memory hotplug not supported")
|
||||||
)
|
)
|
||||||
|
|
||||||
// In some architectures the maximum number of vCPUs depends on the number of physical cores.
|
// In some architectures the maximum number of vCPUs depends on the number of physical cores.
|
||||||
|
@ -128,8 +128,6 @@ const (
|
|||||||
qemuStopSandboxTimeoutSecs = 15
|
qemuStopSandboxTimeoutSecs = 15
|
||||||
)
|
)
|
||||||
|
|
||||||
var noGuestMemHotplugErr error = errors.New("guest memory hotplug not supported")
|
|
||||||
|
|
||||||
// agnostic list of kernel parameters
|
// agnostic list of kernel parameters
|
||||||
var defaultKernelParameters = []Param{
|
var defaultKernelParameters = []Param{
|
||||||
{"panic", "1"},
|
{"panic", "1"},
|
||||||
|
@ -175,7 +175,6 @@ const (
|
|||||||
defaultBridgeBus = "pcie.0"
|
defaultBridgeBus = "pcie.0"
|
||||||
defaultPCBridgeBus = "pci.0"
|
defaultPCBridgeBus = "pci.0"
|
||||||
maxDevIDSize = 31
|
maxDevIDSize = 31
|
||||||
defaultMsize9p = 8192
|
|
||||||
pcieRootPortPrefix = "rp"
|
pcieRootPortPrefix = "rp"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user