mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 15:32:30 +00:00
qemu: Don't use non-existent pmu=off cpu parameter on POWER
The ppc64 specific qemu setup code adds a "pmu=off" parameter to the cpu model if the nestedRun option is set. But, not only does availability of the pmu have nothing to do with nesting on POWER, there is no "pmu=" cpu opton for ppc64 at all. So, simply remove it. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
773582c56b
commit
f2c6eb1639
@ -102,11 +102,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 {
|
||||
|
@ -32,11 +32,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 getQemuVersion() (qemuMajorVersion int, qemuMinorVersion int) {
|
||||
|
Loading…
Reference in New Issue
Block a user