summaryrefslogtreecommitdiffstats
path: root/drivers/vhost/test.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2010-11-29 18:09:01 +0100
committerMichael S. Tsirkin <mst@redhat.com>2010-12-09 15:00:21 +0100
commit71ccc212e5b28dfcc870b6db6589c2df264fdc6a (patch)
treed9e98da011381c02b4ccae592509836aed2f0fcd /drivers/vhost/test.h
parentvhost: better variable name in logging (diff)
downloadlinux-71ccc212e5b28dfcc870b6db6589c2df264fdc6a.tar.xz
linux-71ccc212e5b28dfcc870b6db6589c2df264fdc6a.zip
vhost test module
This adds a test module for vhost infrastructure. Intentionally not tied to kbuild to prevent people from installing and loading it accidentally. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vhost/test.h')
-rw-r--r--drivers/vhost/test.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/vhost/test.h b/drivers/vhost/test.h
new file mode 100644
index 000000000000..1fef5df82153
--- /dev/null
+++ b/drivers/vhost/test.h
@@ -0,0 +1,7 @@
+#ifndef LINUX_VHOST_TEST_H
+#define LINUX_VHOST_TEST_H
+
+/* Start a given test on the virtio null device. 0 stops all tests. */
+#define VHOST_TEST_RUN _IOW(VHOST_VIRTIO, 0x31, int)
+
+#endif