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.

Acked-by: Shuah Khan <sk...@linuxfoundation.org>
Signed-off-by: David Matlack <dmatl...@google.com>
---
 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 daf520a13bdf..1af6e92a167c 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -26410,6 +26410,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:     k...@vger.kernel.org
@@ -26474,6 +26475,12 @@ L:     qat-li...@intel.com
 S:     Supported
 F:     drivers/vfio/pci/qat/
 
+VFIO SELFTESTS
+M:     David Matlack <dmatl...@google.com>
+L:     k...@vger.kernel.org
+S:     Maintained
+F:     tools/testing/selftests/vfio/
+
 VFIO VIRTIO PCI DRIVER
 M:     Yishai Hadas <yish...@nvidia.com>
 L:     k...@vger.kernel.org
diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile
index 030da61dbff3..c4e616183aa5 100644
--- a/tools/testing/selftests/Makefile
+++ b/tools/testing/selftests/Makefile
@@ -124,6 +124,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.51.0.rc2.233.g662b1ed5c5-goog


Reply via email to