summaryrefslogtreecommitdiff
path: root/drivers/vhost/test.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2010-11-29 20:09:01 +0300
committerMichael S. Tsirkin <mst@redhat.com>2010-12-09 17:00:21 +0300
commit71ccc212e5b28dfcc870b6db6589c2df264fdc6a (patch)
treed9e98da011381c02b4ccae592509836aed2f0fcd /drivers/vhost/test.h
parent28831ee60b79bed50958c9cb0d2e76cdc98406f9 (diff)
downloadlinux-71ccc212e5b28dfcc870b6db6589c2df264fdc6a.tar.xz
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