From nobody Fri Dec 19 13:46:23 2025 Received: from out-179.mta0.migadu.com (out-179.mta0.migadu.com [91.218.175.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C10F266B50 for ; Wed, 26 Mar 2025 19:37:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743017844; cv=none; b=QdYhvQWF9ZZPVvgI1RAS0MFUR36vpHqfQuaxSfgAs2dS4x9/5yxQxPZEMG4O60leGm13S0rigT/bTREaDFMgFZvNwihLOdWZPZlY5Ah/BA36eVe1zHG9aiYzHW5SFDdYCLVsTxfCZpptDtOzmNR7ZCDn7lLvEJv7pkmz2cdXsrk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743017844; c=relaxed/simple; bh=d7XKnzf7k+8xqNZ9Bff2cPjyaNDlmTtBgLKVxfUqY8k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fHrdDHJtixev9arTDscJKa7PhkwE86ae2fhWCCuyGIwy1Et3YLuB+naO3XNtw+rqL4Hx9zW0zySGBmPHa65c/T8IVSPwqXQU02Wo7pJij17r5bTPDuVm7mq1vcXazJno9TwbVuYmowgt8KL/Bc7ddirh7310okiMO4W3yTktP3A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=MIw/qhfM; arc=none smtp.client-ip=91.218.175.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="MIw/qhfM" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1743017840; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=N/bYfP9s28hzwaYbP0WnCcH/qj/69pzWGJhEEE0MPjU=; b=MIw/qhfMA+UrfL6ngMc3lzJmRv1NfzQffcrnUm/TpR0QsDbCMNYa8Le623K1l4trJ7xpmc 9JluCEFA6Ei23BIdhOLQ2TPBqKtv+YiM6sFV0xeO6vzY0PMUaz6mLrA804m3Wt/tvTK3m4 d2qSRthUOiCTJfqMFT1hU48ITzGJKF4= From: Yosry Ahmed To: Sean Christopherson Cc: Paolo Bonzini , Jim Mattson , Maxim Levitsky , Vitaly Kuznetsov , Rik van Riel , Tom Lendacky , x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Yosry Ahmed Subject: [RFC PATCH 15/24] KVM: x86/mmu: rename __kvm_mmu_invalidate_addr() Date: Wed, 26 Mar 2025 19:36:10 +0000 Message-ID: <20250326193619.3714986-16-yosry.ahmed@linux.dev> In-Reply-To: <20250326193619.3714986-1-yosry.ahmed@linux.dev> References: <20250326193619.3714986-1-yosry.ahmed@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Maxim Levitsky --- 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); =20 -static void __kvm_mmu_invalidate_addr(struct kvm_vcpu *vcpu, struct kvm_mm= u *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; =20 @@ -6374,11 +6375,11 @@ void kvm_mmu_invalidate_addr(struct kvm_vcpu *vcpu,= struct kvm_mmu *mmu, return; =20 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); =20 for (i =3D 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); --=20 2.49.0.395.g12beb8f557-goog