libqos: fix qvring_init()
[qemu.git] / fsdev / qemu-fsdev-opts.c
blob1dd8c7a24c9c79fc57fc7acb54048149f68c52e4
1 /*
2 * 9p
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.
6 */
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 = {
14 .name = "fsdev",
15 .implied_opt_name = "fsdriver",
16 .head = QTAILQ_HEAD_INITIALIZER(qemu_fsdev_opts.head),
17 .desc = {
19 .name = "fsdriver",
20 .type = QEMU_OPT_STRING,
21 }, {
22 .name = "path",
23 .type = QEMU_OPT_STRING,
24 }, {
25 .name = "security_model",
26 .type = QEMU_OPT_STRING,
27 }, {
28 .name = "writeout",
29 .type = QEMU_OPT_STRING,
30 }, {
31 .name = "readonly",
32 .type = QEMU_OPT_BOOL,
34 }, {
35 .name = "socket",
36 .type = QEMU_OPT_STRING,
37 }, {
38 .name = "sock_fd",
39 .type = QEMU_OPT_NUMBER,
42 { /*End of list */ }
46 static QemuOptsList qemu_virtfs_opts = {
47 .name = "virtfs",
48 .implied_opt_name = "fsdriver",
49 .head = QTAILQ_HEAD_INITIALIZER(qemu_virtfs_opts.head),
50 .desc = {
52 .name = "fsdriver",
53 .type = QEMU_OPT_STRING,
54 }, {
55 .name = "path",
56 .type = QEMU_OPT_STRING,
57 }, {
58 .name = "mount_tag",
59 .type = QEMU_OPT_STRING,
60 }, {
61 .name = "security_model",
62 .type = QEMU_OPT_STRING,
63 }, {
64 .name = "writeout",
65 .type = QEMU_OPT_STRING,
66 }, {
67 .name = "readonly",
68 .type = QEMU_OPT_BOOL,
69 }, {
70 .name = "socket",
71 .type = QEMU_OPT_STRING,
72 }, {
73 .name = "sock_fd",
74 .type = QEMU_OPT_NUMBER,
77 { /*End of list */ }
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);