From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f73.google.com (mail-oa1-f73.google.com [209.85.160.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B60D329E5F for ; Mon, 9 Feb 2026 22:41:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770676869; cv=none; b=Zju4iA818Kr2Bbu6NNo3nMnAbOAFuXwrgzFoiCOFLtSkDOkYVxMrDmjAnvZMkCPW82yfEL3ytzDvHKM6YV0vpvNOVB4Z2gfz7Z7ahGnl9tpkIQwVDmA7UYLhQ8wWP7gYifLD2ZamQq5Kvorq8WswteO2El7SKmohB3wXkTHdK4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770676869; c=relaxed/simple; bh=pKWQ8eiEG2mrdGJZiqdIDMjf5MzF6cSVZ2+ozjk63zY=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=p5ITfnttiA1syzXv/7Mg+2VXUOyoGDV7OHUbsmczn+GhlD9P+EZG5mtpLTApw6mOe9iEsAENb84K+D8zyAgolH9VT1iOf1ZzQemvJ+5pyTk4opAsf2lfRTDyzqA48QF9oNfvXFhkg9DCraexhooLaMgidj+aKuPMa1qjV3nrQoA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--coltonlewis.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=F3rWxAhy; arc=none smtp.client-ip=209.85.160.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--coltonlewis.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="F3rWxAhy" Received: by mail-oa1-f73.google.com with SMTP id 586e51a60fabf-4094c2f62f3so15450634fac.0 for ; Mon, 09 Feb 2026 14:41:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1770676863; x=1771281663; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=N13aFr3ll/bgxK3rlveFMtlg5cOY53+sxi39a+VtEUU=; b=F3rWxAhyu4/fpcC5n73l7lwudmeJlqrVt4V5wMoVxWD0SYq4ffjrkiSfRnFXsxHnY0 tmjWL11DgLX04eUPWDCmAMDVQKJwzbs+zHadBh+sm4yrYqs6aRJDkMlTYjqU2Z9BoPau Q9+tZYpERgaZ5uusWrAdaRkr6WwKHhvEZ7woRYMvOpH/LaNrrbeA7GgmbMfKri7a/DUg 5rC9FeHh8xL7wODmaLQfTQtg5bltYkq5ozqVXz0ms645Z91AqkJkxnQVMO3cv/naVqDl G/KIm9i9BpAeDADIfb7kae64uDEszdQ1Eu8FyPBYoUueepSNJ4jaA/iCYGR1x3ECbJNV tRzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770676863; x=1771281663; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=N13aFr3ll/bgxK3rlveFMtlg5cOY53+sxi39a+VtEUU=; b=DAkZSD+9yP5z08GfYB3pBoD24fw8ae8NH5FLkHe1ufKIuazJdX3riVebg0J6c8eaIe FCEq5yqLjJBlkW23VFYNP78Z5LgaWorl2u7cJgAaMkVVaq6jmPu6njleKU8+5lxYiRjo ozH7dirhW6ydUqZpxOkck7ktBlf715zyHdJRUVUaOsZCnHDyxvzG3gFW7TJj5MMxo+Vs 4/kzP5qNX+dIozp1R/wxuU5NZ+68vlR8JDEp4WkleF0dZzJf5nEje12cdOzYzN10UYlv 5IgKSYPNcLLbCX7EenIvGQtPS53u7SNjs+1Bm1fSDBjXO7Nspm6J0r8BIiJ/XZKzdf5+ wDyw== X-Forwarded-Encrypted: i=1; AJvYcCVtBVqtcEl5maRWFwNJCbHR3vbOSSJgvSMFO84JVNJJqM5MYVqQMkBMIcF9ii6xurvMmcjbOC0/pts=@vger.kernel.org X-Gm-Message-State: AOJu0YyhL6uhxzb+BjBIdHoaKP3MYOtJUKs1A+DzGW5rBn5+eoCVQE+i mPDlxytvrmrYCkDONDpv0Z+t17fcwFHXI5T3Ro3lkRxJATl7GgtLEJgPu3j8kMRHLvYbt43CNY0 M0s5nNRTMw7FGGFYSkOs4atUuAg== X-Received: from iobfj4.prod.google.com ([2002:a05:6602:644:b0:957:6f27:bbe0]) (user=coltonlewis job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6820:4b94:b0:662:f452:648f with SMTP id 006d021491bc7-66d09dacae7mr6166360eaf.17.1770676862961; Mon, 09 Feb 2026 14:41:02 -0800 (PST) Date: Mon, 9 Feb 2026 22:14:12 +0000 In-Reply-To: <20260209221414.2169465-1-coltonlewis@google.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260209221414.2169465-1-coltonlewis@google.com> X-Mailer: git-send-email 2.53.0.rc2.204.g2597b5adb4-goog Message-ID: <20260209221414.2169465-18-coltonlewis@google.com> Subject: [PATCH v6 17/19] KVM: selftests: Add find_bit to KVM library From: Colton Lewis To: kvm@vger.kernel.org Cc: Alexandru Elisei , Paolo Bonzini , Jonathan Corbet , Russell King , Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , Mingwei Zhang , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Mark Rutland , Shuah Khan , Ganapatrao Kulkarni , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-perf-users@vger.kernel.org, linux-kselftest@vger.kernel.org, Colton Lewis Content-Type: text/plain; charset="UTF-8" Some selftests have a dependency on find_bit and weren't compiling separately without it, so I've added it to the KVM library here using the same method as files like rbtree.c. Signed-off-by: Colton Lewis --- tools/testing/selftests/kvm/Makefile.kvm | 1 + tools/testing/selftests/kvm/lib/find_bit.c | 1 + 2 files changed, 2 insertions(+) create mode 100644 tools/testing/selftests/kvm/lib/find_bit.c diff --git a/tools/testing/selftests/kvm/Makefile.kvm b/tools/testing/selftests/kvm/Makefile.kvm index ba5c2b643efaa..1f7465348e545 100644 --- a/tools/testing/selftests/kvm/Makefile.kvm +++ b/tools/testing/selftests/kvm/Makefile.kvm @@ -5,6 +5,7 @@ all: LIBKVM += lib/assert.c LIBKVM += lib/elf.c +LIBKVM += lib/find_bit.c LIBKVM += lib/guest_modes.c LIBKVM += lib/io.c LIBKVM += lib/kvm_util.c diff --git a/tools/testing/selftests/kvm/lib/find_bit.c b/tools/testing/selftests/kvm/lib/find_bit.c new file mode 100644 index 0000000000000..67d9d9cbca85c --- /dev/null +++ b/tools/testing/selftests/kvm/lib/find_bit.c @@ -0,0 +1 @@ +#include "../../../../lib/find_bit.c" -- 2.53.0.rc2.204.g2597b5adb4-goog