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
,
49 static QemuOptsList qemu_virtfs_opts
= {
51 .implied_opt_name
= "fsdriver",
52 .head
= QTAILQ_HEAD_INITIALIZER(qemu_virtfs_opts
.head
),
56 .type
= QEMU_OPT_STRING
,
59 .type
= QEMU_OPT_STRING
,
62 .type
= QEMU_OPT_STRING
,
64 .name
= "security_model",
65 .type
= QEMU_OPT_STRING
,
68 .type
= QEMU_OPT_STRING
,
71 .type
= QEMU_OPT_BOOL
,
74 .type
= QEMU_OPT_STRING
,
77 .type
= QEMU_OPT_NUMBER
,
84 static void fsdev_register_config(void)
86 qemu_add_opts(&qemu_fsdev_opts
);
87 qemu_add_opts(&qemu_virtfs_opts
);
89 opts_init(fsdev_register_config
);