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/config-file.h"
9 #include "qemu/option.h"
10 #include "qemu/module.h"
12 static QemuOptsList qemu_fsdev_opts
= {
14 .implied_opt_name
= "fsdriver",
15 .head
= QTAILQ_HEAD_INITIALIZER(qemu_fsdev_opts
.head
),
19 .type
= QEMU_OPT_STRING
,
22 .type
= QEMU_OPT_STRING
,
24 .name
= "security_model",
25 .type
= QEMU_OPT_STRING
,
28 .type
= QEMU_OPT_STRING
,
31 .type
= QEMU_OPT_BOOL
,
35 .type
= QEMU_OPT_STRING
,
38 .type
= QEMU_OPT_NUMBER
,
45 static QemuOptsList qemu_virtfs_opts
= {
47 .implied_opt_name
= "fsdriver",
48 .head
= QTAILQ_HEAD_INITIALIZER(qemu_virtfs_opts
.head
),
52 .type
= QEMU_OPT_STRING
,
55 .type
= QEMU_OPT_STRING
,
58 .type
= QEMU_OPT_STRING
,
60 .name
= "security_model",
61 .type
= QEMU_OPT_STRING
,
64 .type
= QEMU_OPT_STRING
,
67 .type
= QEMU_OPT_BOOL
,
70 .type
= QEMU_OPT_STRING
,
73 .type
= QEMU_OPT_NUMBER
,
80 static void fsdev_register_config(void)
82 qemu_add_opts(&qemu_fsdev_opts
);
83 qemu_add_opts(&qemu_virtfs_opts
);
85 machine_init(fsdev_register_config
);