From nobody Mon Dec 1 22:31:40 2025 Received: from out-172.mta0.migadu.com (out-172.mta0.migadu.com [91.218.175.172]) (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 5257A1FC110 for ; Thu, 27 Nov 2025 01:35:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764207304; cv=none; b=Gpv2eNJIghgRub7+JzVKnX9l1VA8iaEmvcGwlmjnCSFSdAcYakkh7VjAAApiXJiWCh8agSledin7pYC0mDz9GZOkOMl4n3DBgyKC5BCpyFPhJPrBI+uJeeNLG3PY+cztCde3UxN/bgbncrZXsAJ4H0W2PkqPUVo6iBkA+0hjJv4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764207304; c=relaxed/simple; bh=8dSwIsMf5WkZ+GB47q/HjDY4MVtZOBN0iPzHxaa8MB4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MNWW1yBTQf8nNM0NRO5rhaN4Q1rB3HXz4yKFJ9syKpBt5Dx9uJgVzD4hLhlRlkcl8s3HX2+QlxVyZYQDRfEPrpy0csMyBFfMIUVtLjxgAfm4mJzNWGmmvBT/zRiMuiDb26q2S2tUvxuC2nTd37Pphrg4Tf0pfMiiiId9hkgASwM= 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=iobWqrUf; arc=none smtp.client-ip=91.218.175.172 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="iobWqrUf" 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=1764207299; 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=kgL39qdbTnUxdJP/NSbd0jALF1Kl9kFpUI0uKGh2kK0=; b=iobWqrUfhNMTYtVgI+psJKay/AbEG7uSqkZPrQiBLifDsO1wGIu7Ol6R5AB2o90ZNityDU GG23b3J9OhUbS5OdEA/rbMVKW2Ic0tE8AjjMKR3jdru1zrBpZ46ilK4y6rOABnve9binZW muan9ZZVixPOjDbEvZH4zP2gs441tp0= From: Yosry Ahmed To: Sean Christopherson Cc: Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Yosry Ahmed Subject: [PATCH v3 01/16] KVM: selftests: Make __vm_get_page_table_entry() static Date: Thu, 27 Nov 2025 01:34:25 +0000 Message-ID: <20251127013440.3324671-2-yosry.ahmed@linux.dev> In-Reply-To: <20251127013440.3324671-1-yosry.ahmed@linux.dev> References: <20251127013440.3324671-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" The function is only used in processor.c, drop the declaration in processor.h and make it static. No functional change intended. Signed-off-by: Yosry Ahmed --- tools/testing/selftests/kvm/include/x86/processor.h | 2 -- tools/testing/selftests/kvm/lib/x86/processor.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/kvm/include/x86/processor.h b/tools/te= sting/selftests/kvm/include/x86/processor.h index 57d62a425109..c00c0fbe62cd 100644 --- a/tools/testing/selftests/kvm/include/x86/processor.h +++ b/tools/testing/selftests/kvm/include/x86/processor.h @@ -1367,8 +1367,6 @@ static inline bool kvm_is_ignore_msrs(void) return get_kvm_param_bool("ignore_msrs"); } =20 -uint64_t *__vm_get_page_table_entry(struct kvm_vm *vm, uint64_t vaddr, - int *level); uint64_t *vm_get_page_table_entry(struct kvm_vm *vm, uint64_t vaddr); =20 uint64_t kvm_hypercall(uint64_t nr, uint64_t a0, uint64_t a1, uint64_t a2, diff --git a/tools/testing/selftests/kvm/lib/x86/processor.c b/tools/testin= g/selftests/kvm/lib/x86/processor.c index 36104d27f3d9..c14bf2b5f28f 100644 --- a/tools/testing/selftests/kvm/lib/x86/processor.c +++ b/tools/testing/selftests/kvm/lib/x86/processor.c @@ -306,8 +306,8 @@ static bool vm_is_target_pte(uint64_t *pte, int *level,= int current_level) return *level =3D=3D current_level; } =20 -uint64_t *__vm_get_page_table_entry(struct kvm_vm *vm, uint64_t vaddr, - int *level) +static uint64_t *__vm_get_page_table_entry(struct kvm_vm *vm, uint64_t vad= dr, + int *level) { int va_width =3D 12 + (vm->pgtable_levels) * 9; uint64_t *pte =3D &vm->pgd; --=20 2.52.0.158.g65b55ccf14-goog