From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f202.google.com (mail-oi1-f202.google.com [209.85.167.202]) (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 78E253D301E for ; Fri, 12 Jun 2026 19:29:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781292576; cv=none; b=M327DNZMMruTSJ8VJRauPrlJMlYIQvUSE9uIYDtHDAiC4wOucGSclm7n4bN//Zv0xlqzALeLgl+KVaho9JG3FkwyY0DdTM+Bh4q2+Hh6BVJGeBwn1h6eHjMIH50Gz/zWOWx1FZdAEeFMTGK5k3gXNhDdKfU/fQ+gSzC63/Wz+Z8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781292576; c=relaxed/simple; bh=HBuFwboneQNMp7qglhgXk7alnCfDwtLSxYiguum4PxI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=IZatjSw+6i5yotsDobxWRCRMyl9exOKS+E58ZeHQC+IshVUiiv2uk/4eGpl6kKIglFNvz55H3aHpIQafJGinGKacnwFPDB942QrGQBFX0J/wGVOltJukQZuTXWPNQFIIO7GrumegYHSpjREhd/xtRS7FiCWPh5E7wLSxdPEKYZ8= 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=pr/aGln3; arc=none smtp.client-ip=209.85.167.202 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="pr/aGln3" Received: by mail-oi1-f202.google.com with SMTP id 5614622812f47-486417cc069so1695044b6e.0 for ; Fri, 12 Jun 2026 12:29:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1781292568; x=1781897368; 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=lI2FhZeVSW/rDbtlOOBPVMTchx/8Z69t0suel1yDoGI=; b=pr/aGln3J9K7mB7pFQ7vKNt9N+5/LTescX762MEq40KZ1XOAC30WqI5a0vJXHE+DfU xdB68KTUPAAMR7uVW+JgMPpz4ZP0yWKhC16N/HYehe20mq+vfcZTRjBsF+KTONi4LKZZ B8vcrXsCdI8im2fICAcFWli0usmHnyg8/ELYuxJnfo8pzpDpqD24ebc27fd/sDxC2D7x oEZerZ33KuqZQxkDPXJXf8esM4OTDSuq2aHsX3pN0aKd2hUFdtpY1h5u9m3yJrUknuUL 8J6PU323xrNVo/dZz0xLqm8RbjzHFrD3P3xBh9iE086T1kjX37MiZXPaaliDY/Cd6+kK u2+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781292568; x=1781897368; 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=lI2FhZeVSW/rDbtlOOBPVMTchx/8Z69t0suel1yDoGI=; b=LkmeQCl6xFKFYHvv9TjtTFXtNhDjCcY172KTlfvq+Z/GzXNc12UfSjo4G++7+GOhpv a8DTo1yge0RwVLW1MUicXDTGgorxdNXggfo17GkgRNeQRCyjWVbO5XKYJatAJDJsQPqv KDx+8LGwgvImT96Styq3bcvAiTldLHpoJKgA9l6cU6xtxIi+tF113YZQb8ThVzPovQsR AoIHqNBwPq7QldJdjCPQjKMxHDaYCuFflpSMFNav0oFUSC01qFHfVomETr8nx7uTK8mS UdVDjGG2AjmxKlFJWKNd1KyjQv+AZ6UXp00CMRzxHSTqOhr94/7pbe2FgkO4Lo3wknnc 3b4A== X-Forwarded-Encrypted: i=1; AFNElJ/v+1uqrMBEa6PQzXJZ5uDcP9jEp6vVrqv71eY9uywktkzY/XzoA3nQQYyuXBDJzjW9iUIYBBgY+dcNttyhkHI=@vger.kernel.org X-Gm-Message-State: AOJu0YxSsxkFpmyyfRpvM+9B4zPbSSJ129pBmcd7pzik/PWLWzFdvn7V BYblZnmQzYZCR5vGHumecfzmpTX0xSAQBTiWXHp/IS77kke3x13zV9cyxf6dT1orxJFoHPT9lv5 xuQ3mIpJVDq+Jme3AVn2DCOByYQ== X-Received: from iljq18.prod.google.com ([2002:a05:6e02:1072:b0:500:26db:d9ff]) (user=coltonlewis job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6808:1b2a:b0:485:467f:a306 with SMTP id 5614622812f47-4872f352d35mr2615199b6e.4.1781292567951; Fri, 12 Jun 2026 12:29:27 -0700 (PDT) Date: Fri, 12 Jun 2026 19:29:07 +0000 In-Reply-To: <20260612192909.1153907-1-coltonlewis@google.com> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260612192909.1153907-1-coltonlewis@google.com> X-Mailer: git-send-email 2.54.0.1136.gdb2ca164c4-goog Message-ID: <20260612192909.1153907-20-coltonlewis@google.com> Subject: [PATCH 19/21] 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 , James Clark , 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 | 2 ++ 2 files changed, 3 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 9118a5a51b89f..fa7a2746b1c13 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..5534248c663f7 --- /dev/null +++ b/tools/testing/selftests/kvm/lib/find_bit.c @@ -0,0 +1,2 @@ +// SPDX-License-Identifier: GPL-2.0 +#include "../../../../lib/find_bit.c" -- 2.54.0.1136.gdb2ca164c4-goog