]> asedeno.scripts.mit.edu Git - linux.git/commit
kvm: x86: Refactor mmu_free_roots()
authorJunaid Shahid <junaids@google.com>
Fri, 4 May 2018 18:37:11 +0000 (11:37 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 May 2018 16:14:23 +0000 (18:14 +0200)
commit74b566e6cf21f07df385d593a7fcf8bbfc5d3f0f
tree95bb7e32451e24f87ac2c96027da58894b08e0be
parenta780a3ea628268b2ad0ed43d7f28d90db0ff18be
kvm: x86: Refactor mmu_free_roots()

Extract the logic to free a root page in a separate function to avoid code
duplication in mmu_free_roots(). Also, change it to an exported function
i.e. kvm_mmu_free_roots().

Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c