mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-03 22:17:35 +00:00
runtime: remove qemuPaths
It is broken that it doesn't list QemuVirt machine type. In fact we don't need it at all. Just drop it. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
parent
cc4b9ac7cd
commit
fa09f0ec84
@ -41,11 +41,6 @@ const (
|
|||||||
qmpMigrationWaitTimeout = 5 * time.Second
|
qmpMigrationWaitTimeout = 5 * time.Second
|
||||||
)
|
)
|
||||||
|
|
||||||
var qemuPaths = map[string]string{
|
|
||||||
QemuQ35: defaultQemuPath,
|
|
||||||
QemuMicrovm: defaultQemuPath,
|
|
||||||
}
|
|
||||||
|
|
||||||
var kernelParams = []Param{
|
var kernelParams = []Param{
|
||||||
{"tsc", "reliable"},
|
{"tsc", "reliable"},
|
||||||
{"no_timer_check", ""},
|
{"no_timer_check", ""},
|
||||||
@ -114,7 +109,7 @@ func newQemuArch(config HypervisorConfig) (qemuArch, error) {
|
|||||||
q := &qemuAmd64{
|
q := &qemuAmd64{
|
||||||
qemuArchBase: qemuArchBase{
|
qemuArchBase: qemuArchBase{
|
||||||
qemuMachine: *mp,
|
qemuMachine: *mp,
|
||||||
qemuExePath: qemuPaths[machineType],
|
qemuExePath: defaultQemuPath,
|
||||||
memoryOffset: config.MemOffset,
|
memoryOffset: config.MemOffset,
|
||||||
kernelParamsNonDebug: kernelParamsNonDebug,
|
kernelParamsNonDebug: kernelParamsNonDebug,
|
||||||
kernelParamsDebug: kernelParamsDebug,
|
kernelParamsDebug: kernelParamsDebug,
|
||||||
|
Loading…
Reference in New Issue
Block a user