aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2018-10-08 21:28:07 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2018-10-17 00:30:03 +0200
commit6a82cd1c7b1e38d3b940fcb35a81e902dd52fb35 (patch)
treefc01ae6e06e05c089877cfc3cbaef09063d1b43c /arch/x86/kvm/vmx.c
parentx86/kvm/mmu.c: set get_pdptr hook in kvm_init_shadow_ept_mmu() (diff)
downloadlinux-dev-6a82cd1c7b1e38d3b940fcb35a81e902dd52fb35.tar.xz
linux-dev-6a82cd1c7b1e38d3b940fcb35a81e902dd52fb35.zip
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>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index fa7e46210a0d..a0c3992a5e88 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -9127,7 +9127,7 @@ static int handle_invpcid(struct kvm_vcpu *vcpu)
== operand.pcid)
roots_to_free |= KVM_MMU_ROOT_PREVIOUS(i);
- kvm_mmu_free_roots(vcpu, roots_to_free);
+ kvm_mmu_free_roots(vcpu, vcpu->arch.mmu, roots_to_free);
/*
* If neither the current cr3 nor any of the prev_roots use the
* given PCID, then nothing needs to be done here because a