[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <616df4f9191cb59af8776775ad2577e412c5f71d.camel@redhat.com>
Date: Thu, 03 Apr 2025 16:10:16 -0400
From: Maxim Levitsky <mlevitsk@...hat.com>
To: Yosry Ahmed <yosry.ahmed@...ux.dev>, Sean Christopherson
<seanjc@...gle.com>
Cc: Paolo Bonzini <pbonzini@...hat.com>, Jim Mattson <jmattson@...gle.com>,
Vitaly Kuznetsov <vkuznets@...hat.com>, Rik van Riel <riel@...riel.com>,
Tom Lendacky <thomas.lendacky@....com>, x86@...nel.org,
kvm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH 15/24] KVM: x86/mmu: rename
__kvm_mmu_invalidate_addr()
On Wed, 2025-03-26 at 19:36 +0000, Yosry Ahmed wrote:
> In preparation for creating another helper for
> kvm_mmu_invalidate_addr(), rename __kvm_mmu_invalidate_addr() to
> kvm_mmu_invalidate_addr_in_root().
>
> No functional change intended.
>
> Signed-off-by: Yosry Ahmed <yosry.ahmed@...ux.dev>
> ---
> arch/x86/kvm/mmu/mmu.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c
> index 63bb77ee1bb16..4a72ada0a7585 100644
> --- a/arch/x86/kvm/mmu/mmu.c
> +++ b/arch/x86/kvm/mmu/mmu.c
> @@ -6317,8 +6317,9 @@ void kvm_mmu_print_sptes(struct kvm_vcpu *vcpu, gpa_t gpa, const char *msg)
> }
> EXPORT_SYMBOL_GPL(kvm_mmu_print_sptes);
>
> -static void __kvm_mmu_invalidate_addr(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu,
> - u64 addr, hpa_t root_hpa)
> +static void kvm_mmu_invalidate_addr_in_root(struct kvm_vcpu *vcpu,
> + struct kvm_mmu *mmu,
> + u64 addr, hpa_t root_hpa)
> {
> struct kvm_shadow_walk_iterator iterator;
>
> @@ -6374,11 +6375,11 @@ void kvm_mmu_invalidate_addr(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu,
> return;
>
> if (roots & KVM_MMU_ROOT_CURRENT)
> - __kvm_mmu_invalidate_addr(vcpu, mmu, addr, mmu->root.hpa);
> + kvm_mmu_invalidate_addr_in_root(vcpu, mmu, addr, mmu->root.hpa);
>
> for (i = 0; i < KVM_MMU_NUM_PREV_ROOTS; i++) {
> if (roots & KVM_MMU_ROOT_PREVIOUS(i))
> - __kvm_mmu_invalidate_addr(vcpu, mmu, addr, mmu->prev_roots[i].hpa);
> + kvm_mmu_invalidate_addr_in_root(vcpu, mmu, addr, mmu->prev_roots[i].hpa);
> }
> }
> EXPORT_SYMBOL_GPL(kvm_mmu_invalidate_addr);
Reviewed-by: Maxim Levitsky<mlevitsk@...hat.com>
Best regards,
Maxim Levitsky
Powered by blists - more mailing lists