diff --git a/src/runtime/virtcontainers/qemu_amd64.go b/src/runtime/virtcontainers/qemu_amd64.go index 1f559d9e91..773e93c24d 100644 --- a/src/runtime/virtcontainers/qemu_amd64.go +++ b/src/runtime/virtcontainers/qemu_amd64.go @@ -158,9 +158,6 @@ func (q *qemuAmd64) bridges(number uint32) { func (q *qemuAmd64) cpuModel() string { cpuModel := defaultCPUModel - if q.nestedRun { - cpuModel += ",pmu=off" - } // VMX is not migratable yet. // issue: https://github.com/kata-containers/kata-containers/src/runtime/issues/1750 diff --git a/src/runtime/virtcontainers/qemu_amd64_test.go b/src/runtime/virtcontainers/qemu_amd64_test.go index f5ab24e7f9..ba810299f7 100644 --- a/src/runtime/virtcontainers/qemu_amd64_test.go +++ b/src/runtime/virtcontainers/qemu_amd64_test.go @@ -95,11 +95,6 @@ func TestQemuAmd64CPUModel(t *testing.T) { model := amd64.cpuModel() assert.Equal(expectedOut, model) - amd64.enableNestingChecks() - expectedOut = defaultCPUModel + ",pmu=off" - model = amd64.cpuModel() - assert.Equal(expectedOut, model) - amd64.disableNestingChecks() base, ok := amd64.(*qemuAmd64) assert.True(ok)