aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2019-08-27 10:54:37 +0100
committerDr. David Alan Gilbert <dgilbert@redhat.com>2020-01-23 16:41:36 +0000
commit315616ed50ba15a5d7236ade8a402a93898202de (patch)
tree343355af3a1e7281d278a7f1b197eb54e9f9b48c
parent0bbd31753714ac2899efda0f0de31e353e965789 (diff)
downloadqemu-315616ed50ba15a5d7236ade8a402a93898202de.zip
qemu-315616ed50ba15a5d7236ade8a402a93898202de.tar.gz
qemu-315616ed50ba15a5d7236ade8a402a93898202de.tar.bz2
virtiofsd: add vhost-user.json file
Install a vhost-user.json file describing virtiofsd. This allows libvirt and other management tools to enumerate vhost-user backend programs. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
-rw-r--r--.gitignore1
-rw-r--r--Makefile1
-rw-r--r--tools/virtiofsd/50-qemu-virtiofsd.json.in5
3 files changed, 7 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index efad605..bc0a035 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@
/config-target.*
/config.status
/config-temp
+/tools/virtiofsd/50-qemu-virtiofsd.json
/elf2dmp
/trace-events-all
/trace/generated-events.h
diff --git a/Makefile b/Makefile
index ef1e215..2f81271 100644
--- a/Makefile
+++ b/Makefile
@@ -329,6 +329,7 @@ endif
ifdef CONFIG_LINUX
HELPERS-y += virtiofsd$(EXESUF)
+vhost-user-json-y += tools/virtiofsd/50-qemu-virtiofsd.json
endif
# Sphinx does not allow building manuals into the same directory as
diff --git a/tools/virtiofsd/50-qemu-virtiofsd.json.in b/tools/virtiofsd/50-qemu-virtiofsd.json.in
new file mode 100644
index 0000000..9bcd86f
--- /dev/null
+++ b/tools/virtiofsd/50-qemu-virtiofsd.json.in
@@ -0,0 +1,5 @@
+{
+ "description": "QEMU virtiofsd vhost-user-fs",
+ "type": "fs",
+ "binary": "@libexecdir@/virtiofsd"
+}