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
,
37 .type
= QEMU_OPT_STRING
,
40 .type
= QEMU_OPT_NUMBER
,
43 .type
= QEMU_OPT_NUMBER
,
46 .type
= QEMU_OPT_NUMBER
,
55 static QemuOptsList qemu_virtfs_opts
= {
57 .implied_opt_name
= "fsdriver",
58 .head
= QTAILQ_HEAD_INITIALIZER(qemu_virtfs_opts
.head
),
62 .type
= QEMU_OPT_STRING
,
65 .type
= QEMU_OPT_STRING
,
68 .type
= QEMU_OPT_STRING
,
70 .name
= "security_model",
71 .type
= QEMU_OPT_STRING
,
74 .type
= QEMU_OPT_STRING
,
77 .type
= QEMU_OPT_BOOL
,
80 .type
= QEMU_OPT_STRING
,
83 .type
= QEMU_OPT_NUMBER
,
86 .type
= QEMU_OPT_NUMBER
,
89 .type
= QEMU_OPT_NUMBER
,
96 static void fsdev_register_config(void)
98 qemu_add_opts(&qemu_fsdev_opts
);
99 qemu_add_opts(&qemu_virtfs_opts
);
101 opts_init(fsdev_register_config
);