]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
vl: Deprecate -virtfs_synth
authorGreg Kurz <groug@kaod.org>
Fri, 17 May 2019 15:34:48 +0000 (17:34 +0200)
committerGreg Kurz <groug@kaod.org>
Fri, 17 May 2019 15:34:48 +0000 (17:34 +0200)
The synth fsdriver never got used for anything else but the QTest
testcase for VirtIO 9P. And even there, QTest uses -fsdev synth and
-device virtio-9p-... directly.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
qemu-deprecated.texi
qemu-options.hx
vl.c

index 842e71b11dccdb0192c7cee9b0116e53f71d244d..1a821b68f43540c047a0ee017aaadbf2372afec2 100644 (file)
@@ -72,6 +72,11 @@ backend settings instead of environment variables.  To ease migration to
 the new format, the ``-audiodev-help'' option can be used to convert
 the current values of the environment variables to ``-audiodev'' options.
 
+@subsection -virtfs_synth (since 4.1)
+
+The ``-virtfs_synth'' argument is now deprecated. Please use ``-fsdev synth''
+and ``-device virtio-9p-...'' instead.
+
 @section QEMU Machine Protocol (QMP) commands
 
 @subsection block-dirty-bitmap-add "autoload" parameter (since 2.12.0)
index 3faa93592991f4e2c2768bff4c2bae7e6eff56e9..e54c56593b259f615ea160de5450062a7433194b 100644 (file)
@@ -1368,7 +1368,8 @@ DEF("virtfs_synth", 0, QEMU_OPTION_virtfs_synth,
 STEXI
 @item -virtfs_synth
 @findex -virtfs_synth
-Create synthetic file system image
+Create synthetic file system image. Note that this option is now deprecated.
+Please use @code{-fsdev synth} and @code{-device virtio-9p-...} instead.
 ETEXI
 
 DEF("iscsi", HAS_ARG, QEMU_OPTION_iscsi,
diff --git a/vl.c b/vl.c
index b6709514c1bb9fe63642d736386af20fb4e35d12..8456f006edbdf70d5232d20c1c460fecba627784 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -3535,6 +3535,10 @@ int main(int argc, char **argv, char **envp)
                 QemuOpts *fsdev;
                 QemuOpts *device;
 
+                warn_report("'-virtfs_synth' is deprecated, please use "
+                             "'-fsdev synth' and '-device virtio-9p-...' "
+                            "instead");
+
                 fsdev = qemu_opts_create(qemu_find_opts("fsdev"), "v_synth",
                                          1, NULL);
                 if (!fsdev) {