From patchwork Fri May 23 23:29:46 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Matlack X-Patchwork-Id: 892136 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.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 A4C411F151E for ; Fri, 23 May 2025 23:30:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748043034; cv=none; b=BnHwIOmZa5btBUU2oRJD3phm/T53vT3lKmC0eIks2Nqe9zPl87dlEzXnIzDPcDNlcGUofYLqTSiM2ni6W0/TK6tSVQJp5qg+4dajAsi1BT+YvJymaicVD4iD5cMcQveP5joHwh5m43bQy9qYKh6EMKQoS0qMAf06PIaLjXh5eEE= 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.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--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-f73.google.com with SMTP id 98e67ed59e1d1-31107a2d3a6so421832a91.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=LkV0ylWw4aW6m4vJLZNyGFeKHUuzlGDJo0PIPpu/Cv6UVXQx0RfAYKDhbO0kQcuO5r spBXUunqg2gRpDnaOvlRiYEhupq9ym1tvpzZ4nZ28XMXbdBwztxJWyoA5rDN4q+P8y0e 15CWsFsCoVbaHwQtJMpADZHFd2BVa8mPJJEdZ5+pYgxJnDqnaoSmu4vbUFP1Ah8o1AyT bPBNqU7tXL1EGF4CngU03wDKW4Tvb+l1kPLegBVTeS2HKw8OWtgmJINp1Cu0iLupxdLY o9Umjqw5LjluGS4mQUO6HJ3FOb8CoPNRFP3F9tAGMs2IUTXz3i9yFGmTkGlJ65KXk4db 1NAA== X-Forwarded-Encrypted: i=1; AJvYcCWGE9L4iEL675GGyQADQlEYIKlaqLjsxBqb7Z3OLXFgc0DW0F/AuCRwaMPhgAIxWLot/UwCney/UBvjulcrFFM=@vger.kernel.org X-Gm-Message-State: AOJu0YyVKaqCrJpRiadDDvSX/gHFYssZoolvkwcEndMpoL+mVgSkhj3t f8ZScDXiuOmX0SpUHvuztFw7xHaoquaYI74ZGwFjcOgj+JrmlCmtKUaYEeekpvj7VJYbcPX4ynX iM611M81ViSrGUg== 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: linux-kselftest@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 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