kvm: x86: Support selectively freeing either current or previous MMU root
authorJunaid Shahid <junaids@google.com>
Wed, 27 Jun 2018 21:59:17 +0000 (14:59 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Aug 2018 15:58:59 +0000 (17:58 +0200)
commit08fb59d8a47d5e1f9de08659603a47f117fe60d5
tree0aca93c0ea3187d9e2d6aaa3258af0d526a2f1e0
parent7eb77e9f5fcf652a21b2d12bff1cd509b6b14f21
kvm: x86: Support selectively freeing either current or previous MMU root

kvm_mmu_free_roots() now takes a mask specifying which roots to free, so
that either one of the roots (active/previous) can be individually freed
when needed.

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