]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Stash 'kvm' in a local variable in kvm_mmu_free_roots()
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 23 Sep 2020 19:12:04 +0000 (12:12 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:32 +0000 (07:57 -0400)
commit066c75c84a45d7fcb922c34cc22a1bbe2d3acba8
tree3adc4d33ff0c6a994b673d19929057f2a25b5f21
parent983cfc3caa7d19b8d77c87dc5e6b2b3827b423be
KVM: x86/mmu: Stash 'kvm' in a local variable in kvm_mmu_free_roots()

To make kvm_mmu_free_roots() a bit more readable, capture 'kvm' in a
local variable instead of doing vcpu->kvm over and over (and over).

No functional change intended.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200923191204.8410-1-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c