mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-07 07:57:43 +00:00
Merge pull request #321 from dgibson/ppc64le
Don't use some x86 specific kernel and qemu options
This commit is contained in:
commit
ec146a1b39
src/runtime/virtcontainers
@ -32,10 +32,7 @@ var qemuPaths = map[string]string{
|
||||
}
|
||||
|
||||
var kernelParams = []Param{
|
||||
{"tsc", "reliable"},
|
||||
{"no_timer_check", ""},
|
||||
{"rcupdate.rcu_expedited", "1"},
|
||||
{"noreplace-smp", ""},
|
||||
{"reboot", "k"},
|
||||
{"console", "hvc0"},
|
||||
{"console", "hvc1"},
|
||||
@ -104,11 +101,7 @@ func (q *qemuPPC64le) bridges(number uint32) {
|
||||
}
|
||||
|
||||
func (q *qemuPPC64le) cpuModel() string {
|
||||
cpuModel := defaultCPUModel
|
||||
if q.nestedRun {
|
||||
cpuModel += ",pmu=off"
|
||||
}
|
||||
return cpuModel
|
||||
return defaultCPUModel
|
||||
}
|
||||
|
||||
func (q *qemuPPC64le) memoryTopology(memoryMb, hostMemoryMb uint64, slots uint8) govmmQemu.Memory {
|
||||
|
@ -27,11 +27,6 @@ func TestQemuPPC64leCPUModel(t *testing.T) {
|
||||
expectedOut := defaultCPUModel
|
||||
model := ppc64le.cpuModel()
|
||||
assert.Equal(expectedOut, model)
|
||||
|
||||
ppc64le.enableNestingChecks()
|
||||
expectedOut = defaultCPUModel + ",pmu=off"
|
||||
model = ppc64le.cpuModel()
|
||||
assert.Equal(expectedOut, model)
|
||||
}
|
||||
|
||||
func TestQemuPPC64leMemoryTopology(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user