4 * This work is licensed under the terms of the GNU GPL, version 2 or
5 * later. See the COPYING file in the top-level directory.
8 #include "qemu/osdep.h"
9 #include "qemu/config-file.h"
10 #include "qemu/option.h"
11 #include "qemu/module.h"
12 #include "qemu/throttle-options.h"
14 static QemuOptsList qemu_fsdev_opts
= {
16 .implied_opt_name
= "fsdriver",
17 .head
= QTAILQ_HEAD_INITIALIZER(qemu_fsdev_opts
.head
),
21 .type
= QEMU_OPT_STRING
,
24 .type
= QEMU_OPT_STRING
,
26 .name
= "security_model",
27 .type
= QEMU_OPT_STRING
,
30 .type
= QEMU_OPT_STRING
,
33 .type
= QEMU_OPT_BOOL
,
36 .type
= QEMU_OPT_STRING
,
39 .type
= QEMU_OPT_STRING
,
42 .type
= QEMU_OPT_NUMBER
,
45 .type
= QEMU_OPT_NUMBER
,
48 .type
= QEMU_OPT_NUMBER
,
57 static QemuOptsList qemu_virtfs_opts
= {
59 .implied_opt_name
= "fsdriver",
60 .head
= QTAILQ_HEAD_INITIALIZER(qemu_virtfs_opts
.head
),
64 .type
= QEMU_OPT_STRING
,
67 .type
= QEMU_OPT_STRING
,
70 .type
= QEMU_OPT_STRING
,
72 .name
= "security_model",
73 .type
= QEMU_OPT_STRING
,
76 .type
= QEMU_OPT_STRING
,
79 .type
= QEMU_OPT_BOOL
,
82 .type
= QEMU_OPT_STRING
,
85 .type
= QEMU_OPT_STRING
,
88 .type
= QEMU_OPT_NUMBER
,
91 .type
= QEMU_OPT_NUMBER
,
94 .type
= QEMU_OPT_NUMBER
,
101 static void fsdev_register_config(void)
103 qemu_add_opts(&qemu_fsdev_opts
);
104 qemu_add_opts(&qemu_virtfs_opts
);
106 opts_init(fsdev_register_config
);