Re: [PATCH v2 08/18] KVM: x86/mmu: do not pass vcpu to root freeing functions
From: Sean Christopherson
Date: Fri Feb 18 2022 - 13:39:53 EST
On Thu, Feb 17, 2022, Paolo Bonzini wrote:
> These functions only operate on a given MMU, of which there are two in a vCPU.
Technically 3, but one is only used to walk guest pages tables ;-)
> They also 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.
Wrapping at ~75 chars is preferred for changelogs.
> Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
> ---
Reviewed-by: Sean Christopherson <seanjc@xxxxxxxxxx>