• Paolo Bonzini's avatar
    KVM: x86/mmu: do not pass vcpu to root freeing functions · 0c1c92f1
    Paolo Bonzini authored
    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>
    0c1c92f1
kvm_host.h 59.2 KB