From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (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 A43DC1C5F27 for ; Fri, 23 May 2025 23:30:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748043034; cv=none; b=X5AOVoTNkRSTvALmZyDy3+7J1NiXZAI2v4iwKPcrnQZq0PfvL0KYmqsHVFxzN2bytmmiTesgJ6tD8cux5TtywmGMiNFiaAjYur8mfmZeqvvhpBXtKjT2QUcW5ELXowiKR5K6Vw+eK3BdjN91+jKuUj6L7pUHSZ8Mvn35uRD+Gx4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748043034; c=relaxed/simple; bh=Eovj7enExFrmaorTy2c5lDeHTWqV0yrpjy/ZyeHJEdM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=qJx9yOOKZvJBhXQ9w53bE3m+ohoIcuy1C/76D6YDMgm07eLDNndqxRe9ITI0bYNGyqks0dhdwWiyU+zIN/RbjZkkjsLwNXpk4lDumKGDKR5028hDTRMy5Hnyt4ICk8xEMOtTi6JCBgchgo3CMBU5SnUKxysgrnTzT9VAFupcSso= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=goMCujzJ; arc=none smtp.client-ip=209.85.216.74 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--dmatlack.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="goMCujzJ" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-31107a2d3a6so421831a91.0 for ; Fri, 23 May 2025 16:30:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1748043032; x=1748647832; 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=YFWKU8DuoaX/PtHBZncZN7QPtCf4ybBqbYBaO92KsDo=; b=goMCujzJfM6g+fLJ/mDuhhvDWreQVISOjLRFlVkAXlnOY1VlaNg8Y8hwKe9XFI6wSq xAYd0Z2uYF3ovHErta5M85JV6/971ESyMfLtqDPxHyUzObbD3Hv1dFapzkPzOAgPnywu a2HBTVNauC5mHppzYo1uvWqp9r+WyAAaBfSetCM/KMFliBQI7O8JJs3mFVL5+GcSMwYb cidBf+StApJPVw50jZkIiHkfL572Q+ZW/YlPUSJSWiwK/wW4ch8yW0WHdfP+r01aUGWe 1YJLcIhiYzbjtWc1ygl8lH0WyMCA/gD/devFlLYUwzk+3+h+nnHnoYCiGhj+nh5IGFij s34Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748043032; x=1748647832; 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=YFWKU8DuoaX/PtHBZncZN7QPtCf4ybBqbYBaO92KsDo=; b=WzXADyCs2RK4dWM/vsIuu18STMauLBtiid7Obh/7zKw8WWTcwLDoz6s4T1iNBGRA5F up4lZV2O45h1ZyUGTwba0V1oo/skMfzv0D/TFocUDr9CqE9uAIRzbRalouZ1HqK8Q7/q KPAszGx6RcNrSwG/21Wrvh7SNwbQ6QhPnaHuH32qXUNpaL+hkBtVVzcbczrGVFIk0Rwn mocOZZJ5diym7zX5vOKTgVtq92IyIOWpzgHtYTAuhF2b0JxplwaxgIUaZjx2DBEihNbp BUYldQDjR+5pI+WrUO89WgJMd5ADvEIYAAEEf70PvTlCZPnpAWCoJVeDZDfIKYkCYGF7 w5ow== X-Forwarded-Encrypted: i=1; AJvYcCXRkGvLGTHSDCOCj1s8FoMdzxSb/hiYduFDwPZPgTl/lXYJ8nHbftGq2Dqcrl3VbMEMBus=@vger.kernel.org X-Gm-Message-State: AOJu0YyH+/V+Qz7uStLd1CSB1loqBGZL8u79MXahurK8a2n34lrtLK97 KmXLRcQKyt1qy3nULMNYQ/AnvW1hzKNE/RlAbd/BSrtw8v8yZj9p2DUuiMnRD3XhT2/aM8AFxAf sEgdUdBtUUfgbww== X-Google-Smtp-Source: AGHT+IF+Z0hjn4awYmjtqXM8PTU+zKEw/zW2vAqo1DMf4XAX0mM00O2TDL3VOErIAo2Iej/NT4RW7Id+e2wDFA== X-Received: from pjbsd11.prod.google.com ([2002:a17:90b:514b:b0:30a:2095:204b]) (user=dmatlack job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:3ec6:b0:30a:4700:ca91 with SMTP id 98e67ed59e1d1-3110f31c2ebmr1243143a91.1.1748043031826; Fri, 23 May 2025 16:30:31 -0700 (PDT) Date: Fri, 23 May 2025 23:29:46 +0000 In-Reply-To: <20250523233018.1702151-1-dmatlack@google.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250523233018.1702151-1-dmatlack@google.com> X-Mailer: git-send-email 2.49.0.1151.ga128411c76-goog Message-ID: <20250523233018.1702151-2-dmatlack@google.com> Subject: [RFC PATCH 01/33] selftests: Create tools/testing/selftests/vfio From: David Matlack To: Alex Williamson Cc: Shuah Khan , Paolo Bonzini , David Matlack , Vinod Koul , Fenghua Yu , "Masami Hiramatsu (Google)" , Adhemerval Zanella , Jiri Olsa , Andrii Nakryiko , Wei Yang , Bjorn Helgaas , Takashi Iwai , Greg Kroah-Hartman , Pierre-Louis Bossart , Andy Shevchenko , FUJITA Tomonori , WangYuli , Sean Christopherson , Andrew Jones , Claudio Imbrenda , Eric Auger , Josh Hilke , linux-kselftest@vger.kernel.org, kvm@vger.kernel.org, Jason Gunthorpe , Kevin Tian , Vipin Sharma , Pasha Tatashin , Saeed Mahameed , Adithya Jayachandran , Parav Pandit , Leon Romanovsky , Vinicius Costa Gomes , Dave Jiang , Dan Williams Content-Type: text/plain; charset="UTF-8" Create the directory tools/testing/selftests/vfio with a stub Makefile and hook it up to the top-level selftests Makefile. This directory will be used in subsequent commits to host selftests for the VFIO subsystem. Signed-off-by: David Matlack --- MAINTAINERS | 7 +++++++ tools/testing/selftests/Makefile | 1 + tools/testing/selftests/vfio/.gitignore | 7 +++++++ tools/testing/selftests/vfio/Makefile | 2 ++ 4 files changed, 17 insertions(+) create mode 100644 tools/testing/selftests/vfio/.gitignore create mode 100644 tools/testing/selftests/vfio/Makefile diff --git a/MAINTAINERS b/MAINTAINERS index 3c6f9e70ace0..ff17343c7fa3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -25493,6 +25493,7 @@ F: drivers/vfio/ F: include/linux/vfio.h F: include/linux/vfio_pci_core.h F: include/uapi/linux/vfio.h +F: tools/testing/selftests/vfio/ VFIO FSL-MC DRIVER L: kvm@vger.kernel.org @@ -25565,6 +25566,12 @@ L: virtualization@lists.linux.dev S: Maintained F: drivers/vfio/pci/virtio +VFIO SELFTESTS +R: David Matlack +L: kvm@vger.kernel.org +S: Maintained +F: tools/testing/selftests/vfio/ + VGA_SWITCHEROO R: Lukas Wunner S: Maintained diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index 80fb84fa3cfc..7681ebb6bd02 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile @@ -120,6 +120,7 @@ TARGETS += uevent TARGETS += user_events TARGETS += vDSO TARGETS += mm +TARGETS += vfio TARGETS += x86 TARGETS += x86/bugs TARGETS += zram diff --git a/tools/testing/selftests/vfio/.gitignore b/tools/testing/selftests/vfio/.gitignore new file mode 100644 index 000000000000..6d9381d60172 --- /dev/null +++ b/tools/testing/selftests/vfio/.gitignore @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-only +* +!/**/ +!*.c +!*.h +!*.S +!*.sh diff --git a/tools/testing/selftests/vfio/Makefile b/tools/testing/selftests/vfio/Makefile new file mode 100644 index 000000000000..2bba39aff5d9 --- /dev/null +++ b/tools/testing/selftests/vfio/Makefile @@ -0,0 +1,2 @@ +CFLAGS = $(KHDR_INCLUDES) +include ../lib.mk -- 2.49.0.1151.ga128411c76-goog