x86/kvm/mmu.c: add kvm_mmu parameter to kvm_mmu_free_roots()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 8 Oct 2018 19:28:07 +0000 (21:28 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:30:03 +0000 (00:30 +0200)
commit6a82cd1c7b1e38d3b940fcb35a81e902dd52fb35
treefc01ae6e06e05c089877cfc3cbaef09063d1b43c
parent3dc773e745234d904b09da37075200ec46af4e7a
x86/kvm/mmu.c: add kvm_mmu parameter to kvm_mmu_free_roots()

Add an option to specify which MMU root we want to free. This will
be used when nested and non-nested MMUs for L1 are split.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/vmx.c