1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-05-07 07:57:43 +00:00

Merge pull request from dgibson/ppc64le

Don't use some x86 specific kernel and qemu options
This commit is contained in:
Peng Tao 2020-06-24 10:28:07 +08:00 committed by GitHub
commit ec146a1b39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 13 deletions
src/runtime/virtcontainers

View File

@ -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 {

View File

@ -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) {