]> 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)
commit5e73b367c0481425b0edfd01991f3db61dab75e7
tree3adc4d33ff0c6a994b673d19929057f2a25b5f21
parent56dd073b5347d28bf3409a91c3a9494bcae933b5
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