diff options
author | 2019-12-18 13:55:05 -0800 | |
---|---|---|
committer | 2020-01-24 09:19:04 +0100 | |
commit | 9d979c7e6ff43ca3200ffcb74f57415fd633a2da (patch) | |
tree | eccf2698eca972da3b29338de53c59d0e4c16671 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: arm: Drop kvm_arch_vcpu_free() (diff) | |
download | linux-dev-9d979c7e6ff43ca3200ffcb74f57415fd633a2da.tar.xz linux-dev-9d979c7e6ff43ca3200ffcb74f57415fd633a2da.zip |
KVM: x86: Remove spurious kvm_mmu_unload() from vcpu destruction path
x86 does not load its MMU until KVM_RUN, which cannot be invoked until
after vCPU creation succeeds. Given that kvm_arch_vcpu_destroy() is
called if and only if vCPU creation fails, it is impossible for the MMU
to be loaded.
Note, the bogus kvm_mmu_unload() call was added during an unrelated
refactoring of vCPU allocation, i.e. was presumably added as an
opportunstic "fix" for a perceived leak.
Fixes: fb3f0f51d92d1 ("KVM: Dynamically allocate vcpus")
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions