Skip to content
Commit 0c1c92f1 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: x86/mmu: do not pass vcpu to root freeing functions



These functions only operate on a given MMU, of which there is more
than one in a vCPU (we care about two, because the third does not have
any roots and is only used to walk guest page tables).  They do need a
struct kvm in order to lock the mmu_lock, but they do not needed anything
else in the struct kvm_vcpu.  So, pass the vcpu->kvm directly to them.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 594bef79
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment