From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.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 B77A81F3BA4 for ; Sat, 13 Jun 2026 00:20:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781310037; cv=none; b=pMJ+PuqPijL+NCp+AJVIzIfCtv84q71yPLPaw8NLAyWOpUiWgdTU+qwbc3dZv8AnwjK5n3J6yXRUJFxbjTCNgVWxuRsIY6jbvP6VKJffwBmFoAiuHMmZTryrUIrYbsJOoXEunjuMnjnnRKyauJlYg+kCjhOwmWLJHRbS/SbK3bw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781310037; c=relaxed/simple; bh=2qrP8HGSKX83R6U67UnzcZDXWcrNXLbnx6XraVWtofM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=nLksgrbrR1RuD6oP3aknFYGsDU/r403fWW7eKuJlSa6SO4yg7e84BTTvBvnf+uSzHchToifpY9JCiALdCOdRLhakOLkua9oBT6ciaDcEgSff76Y2ruJr9lg0FMRbj2IsyIjZ+lZ8BjtjNhknXTQILgqmRDUEmEhOr6XXatpYMAM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=HwTqscwB; arc=none smtp.client-ip=209.85.214.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--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="HwTqscwB" Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-2bf1845bddfso16086045ad.1 for ; Fri, 12 Jun 2026 17:20:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1781310035; x=1781914835; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=/Iw6k9IvS6YCS0467Ck1NDjfIZOkbT+wEKpbw8XzGD0=; b=HwTqscwB0mgmT/K2r/QguQkrolu+DuFwLoAWyFTns8KD1E6C3ks9zYegtig3hydXPp CH3FNiLalZ8ub4m6tFlg4Da0rz2CcWVCDFPizbQz7Ksj0fYaq2/d0jbminLha9FbvJsc 1XveZ8wrkXBzROIRgwf6J5LNWmSiO+0rDtCFNmyi+HXxGdRog8FXoqt9UZypyDnJN40c nifaMNHcBIePLhu6rYihBKTG2wGtw9stJOAyHP0nOziB7QOEAS7YJf0Mp9SoyF10/uue W+aHSjzMBG/gSUPXX6FEOMp6ynJ+UdnUn6kGfWlp2GFAyAOigifxHi9ptZ8JVJ+7gzmK gYYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781310035; x=1781914835; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/Iw6k9IvS6YCS0467Ck1NDjfIZOkbT+wEKpbw8XzGD0=; b=r5QPB5o0UscPUqMVD9GEfXCy3zVdJwolgaZOGGEzbk3LHIV0cC9Io8LdVK78C/ogP6 WuLFeCfMFbeoDQpM/fjTZJvaiuVGB/duheOVsG+IWnjHmo4+j/vHZNNwy4qWzaOAqc/X 9q118CHZKkDDh1vqkkcWnSBTACZCzY2y3khnhNofHWhMq26RDfo/8BtQheUEKPUeGeGB /YCLYoKxAQ1HU6tGt9yQPtkhmtz5DpyzR4PEVd87F1gvwmC0W3b4ToDJCsK6Qe8zUxpA k9kSo52UOTpRE1D7+cqRBLhV6kbK+Jy/LMhfD+eeufAq3rLfBKXr8QUoLhWv6yOwhIt5 gAxA== X-Forwarded-Encrypted: i=1; AFNElJ9EFqcgOypQzSVwm34DUlm10EB2oG9g2pgaycuLLbb1EEswzUlPMwgdaiedQnoIlZr/rNv2FV5L/F0Qi78=@vger.kernel.org X-Gm-Message-State: AOJu0Yy/wDnOE0Fa6GTtPlsXJl+BoYxrVG7lEX4ANqMwStPFQuzf/oPG INnD0/syE8nYLWv0BZi7BC7SvgrKXYKYVMuxOEPOogU/8ulj8Gk23XwOLuQYfUPOK/8QWD+kBt9 UtGtYEg== X-Received: from plbmf15.prod.google.com ([2002:a17:902:fc8f:b0:2bf:14c9:866d]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:ea07:b0:2c0:d91d:c3e8 with SMTP id d9443c01a7336-2c41050b2aamr61506165ad.4.1781310034931; Fri, 12 Jun 2026 17:20:34 -0700 (PDT) Reply-To: Sean Christopherson Date: Fri, 12 Jun 2026 17:20:12 -0700 In-Reply-To: <20260613002031.745413-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260613002031.745413-1-seanjc@google.com> X-Mailer: git-send-email 2.54.0.1136.gdb2ca164c4-goog Message-ID: <20260613002031.745413-2-seanjc@google.com> Subject: [PATCH v7 01/20] KVM: selftests: Build and link selftests/vfio/lib into KVM selftests From: Sean Christopherson To: Paolo Bonzini , Marc Zyngier , Oliver Upton , Sean Christopherson Cc: Joey Gouly , Steffen Eiden , Suzuki K Poulose , Zenghui Yu , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, David Matlack , Josh Hilke Content-Type: text/plain; charset="UTF-8" From: David Matlack Include libvfio.mk into the KVM selftests Makefile and link it into all KVM selftests by adding it to LIBKVM_OBJS. This lays the groundwork for future changes to utilize VFIO devices to verify IRQ bypass in KVM selftests. Note that KVM selftests build their own copy of selftests/vfio/lib and the resulting object files are placed in $(OUTPUT)/lib. This allows the KVM and VFIO selftests to apply different CFLAGS when building without conflicting with each other. Signed-off-by: David Matlack Signed-off-by: Josh Hilke Signed-off-by: Sean Christopherson --- tools/testing/selftests/kvm/Makefile.kvm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/Makefile.kvm b/tools/testing/selftests/kvm/Makefile.kvm index 9462919d2660..59ec232b1e93 100644 --- a/tools/testing/selftests/kvm/Makefile.kvm +++ b/tools/testing/selftests/kvm/Makefile.kvm @@ -258,6 +258,7 @@ OVERRIDE_TARGETS = 1 # which causes the environment variable to override the makefile). include ../lib.mk include ../cgroup/lib/libcgroup.mk +include ../vfio/lib/libvfio.mk INSTALL_HDR_PATH = $(top_srcdir)/usr LINUX_HDR_PATH = $(INSTALL_HDR_PATH)/include/ @@ -312,7 +313,9 @@ LIBKVM_S := $(filter %.S,$(LIBKVM)) LIBKVM_C_OBJ := $(patsubst %.c, $(OUTPUT)/%.o, $(LIBKVM_C)) LIBKVM_S_OBJ := $(patsubst %.S, $(OUTPUT)/%.o, $(LIBKVM_S)) LIBKVM_STRING_OBJ := $(patsubst %.c, $(OUTPUT)/%.o, $(LIBKVM_STRING)) -LIBKVM_OBJS = $(LIBKVM_C_OBJ) $(LIBKVM_S_OBJ) $(LIBKVM_STRING_OBJ) $(LIBCGROUP_O) +LIBKVM_OBJS = $(LIBKVM_C_OBJ) $(LIBKVM_S_OBJ) $(LIBKVM_STRING_OBJ) +LIBKVM_OBJS += $(LIBCGROUP_O) +LIBKVM_OBJS += $(LIBVFIO_O) SPLIT_TEST_GEN_PROGS := $(patsubst %, $(OUTPUT)/%, $(SPLIT_TESTS)) SPLIT_TEST_GEN_OBJ := $(patsubst %, $(OUTPUT)/$(ARCH)/%.o, $(SPLIT_TESTS)) -- 2.54.0.1136.gdb2ca164c4-goog