From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.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 456641F5825 for ; Wed, 10 Jun 2026 00:53:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781052824; cv=none; b=mSlzsTPT/q4HP/LSFrMi555GdmMTBD4exXRTvgyWLbv5R/vCWs1axSE18a/OdRQQJUL1P5ATDLEth7xrfYs1viooUX/ndWB6m7J6jGudEX2eaafj4tfqHFzL3HpUGIL0U3sy4gg1sex5E5+0JpiIsUiTyQ14gzGD85vyq4yenEU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781052824; c=relaxed/simple; bh=ZICe4hE+bdgo/mmBoriJdsV7FkTThoAxxO0XvehbVwI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=eJFf1hB5v2jwBq9Jnm0mCj/uxbaHDdxiE/+OB5u/wspFnBAHDurqgtyCypawxTyN7JqFP7QQ3YpH1bXCISbFF84TW6oTL+mVH7h6FZpEkqfVWcKqUO7pQbGKdaRmfesle40y+xD/Qc5ksDiiATU6DkC4kUzT3tC9j85J1eUVYUs= 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=MztX0AsL; arc=none smtp.client-ip=209.85.215.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="MztX0AsL" Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-c85c530ddebso3597899a12.1 for ; Tue, 09 Jun 2026 17:53:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1781052822; x=1781657622; 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=E3dsDf1mwPqE6CLqG/GF7U0hvBMIyZSe2b/ARirZzXU=; b=MztX0AsLHJ6sZ+wQAOrQuppHz/MdxNlR6epx5ciohFdUfIVDAdI/zZAwWd833cz+ui jSHXuctw1tL79EJsJVSQuIJIGWs8CBwehb7INeXfUTaVJqnDSP2aoSZh7Xl9AlnAl6Zb DNo2HUWDkph7rbSuboQKKXJUXCZAK9a/A5rsysBQq261NoTzp7TStYklN4ybfwN0AASM YkdkoD+SQGk3O+xePANSV6bxci6EEROP74mW+zWJe/cSLePj6hIO+Dh+YNhJQ2FHewyL yRM/kDYTqMe/UKxmtfnagSt0l0Q39V8yHfJZ4qyC8A5Y4T3FEJCxN3xqWbLppioynMN4 Sx9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781052822; x=1781657622; 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=E3dsDf1mwPqE6CLqG/GF7U0hvBMIyZSe2b/ARirZzXU=; b=A0MHL3dpQM+wbZH6NoPhb4hpXuePXc3SsQCMkRFmsKghFhq7yljEmOPlPBrbk5ZI1M FldXqqAx3yW3wqPxn7uA9ui7pr++kyDIuqrQRK3wgeZgbfMSDjaqI0WZztC1MDnEKLkd kVl1ARMw8ikn5YyPMSvDUJ5MS8MfkIU0Tq7tx+LcePDJ/OT726q70ZN6zYpQjNIoCwOK GshL+UCogxTSEIJVj+mdv+H4SjIjsD5jJrZOo90C+hA6fswh0b66Kbutl+ahIyuSQzGZ /J9r7bmFz76A0Rkv1F+wi2oIwMtCUqIYFpi0CVtaw5SKErFVhdXs6bP30LqwsvpuCeN2 aZtw== X-Forwarded-Encrypted: i=1; AFNElJ+tdd7kUoR2RA+XzUYPf3goltv/K1+qoH6fmMqioMyf+d0f46wkU+4HeJo0sKoQez/UrRkImOfdT7/IZh4=@vger.kernel.org X-Gm-Message-State: AOJu0YzffFZ6kwAJOHOmPP+t8zPN1dZeTkcX5273cEw9hMZ30K1F1587 Q1BwuoBWezPHwchcnXWAX1aM9Eqdh2wjyMRYYs95PldSLXU5jX+VumgSa1qqOzWgXsd1B/v+0DP j6C/NoQ== X-Received: from pgwa8.prod.google.com ([2002:a65:6548:0:b0:c86:2164:9671]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a21:b87:b0:3b4:8268:23e8 with SMTP id adf61e73a8af0-3b4ccdf102dmr28032201637.21.1781052822397; Tue, 09 Jun 2026 17:53:42 -0700 (PDT) Reply-To: Sean Christopherson Date: Tue, 9 Jun 2026 17:53:21 -0700 In-Reply-To: <20260610005338.2967132-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: <20260610005338.2967132-1-seanjc@google.com> X-Mailer: git-send-email 2.54.0.1099.g489fc7bff1-goog Message-ID: <20260610005338.2967132-2-seanjc@google.com> Subject: [PATCH v6 01/18] 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 e0ddd3ff9472..14316358fd9f 100644 --- a/tools/testing/selftests/kvm/Makefile.kvm +++ b/tools/testing/selftests/kvm/Makefile.kvm @@ -257,6 +257,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/ @@ -311,7 +312,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.1099.g489fc7bff1-goog