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 <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 f2668b81115c..79a096dc259d 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -25900,6 +25900,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
@@ -25972,6 +25973,12 @@ L:     virtualizat...@lists.linux.dev
 S:     Maintained
 F:     drivers/vfio/pci/virtio
 
+VFIO SELFTESTS
+R:     David Matlack <dmatl...@google.com>
+L:     k...@vger.kernel.org
+S:     Maintained
+F:     tools/testing/selftests/vfio/
+
 VGA_SWITCHEROO
 R:     Lukas Wunner <lu...@wunner.de>
 S:     Maintained
diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile
index 339b31e6a6b5..ad6312cd2338 100644
--- a/tools/testing/selftests/Makefile
+++ b/tools/testing/selftests/Makefile
@@ -123,6 +123,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.50.0.rc2.701.gf1e915cc24-goog


Reply via email to