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"
13 static QemuOptsList qemu_fsdev_opts
= {
15 .implied_opt_name
= "fsdriver",
16 .head
= QTAILQ_HEAD_INITIALIZER(qemu_fsdev_opts
.head
),
20 .type
= QEMU_OPT_STRING
,
23 .type
= QEMU_OPT_STRING
,
25 .name
= "security_model",
26 .type
= QEMU_OPT_STRING
,
29 .type
= QEMU_OPT_STRING
,
32 .type
= QEMU_OPT_BOOL
,
36 .type
= QEMU_OPT_STRING
,
39 .type
= QEMU_OPT_NUMBER
,
46 static QemuOptsList qemu_virtfs_opts
= {
48 .implied_opt_name
= "fsdriver",
49 .head
= QTAILQ_HEAD_INITIALIZER(qemu_virtfs_opts
.head
),
53 .type
= QEMU_OPT_STRING
,
56 .type
= QEMU_OPT_STRING
,
59 .type
= QEMU_OPT_STRING
,
61 .name
= "security_model",
62 .type
= QEMU_OPT_STRING
,
65 .type
= QEMU_OPT_STRING
,
68 .type
= QEMU_OPT_BOOL
,
71 .type
= QEMU_OPT_STRING
,
74 .type
= QEMU_OPT_NUMBER
,
81 static void fsdev_register_config(void)
83 qemu_add_opts(&qemu_fsdev_opts
);
84 qemu_add_opts(&qemu_virtfs_opts
);
86 opts_init(fsdev_register_config
);