arm: Don't let no-MPU PMSA cores write to SCTLR.M
[qemu/ar7.git] / fsdev / qemu-fsdev-opts.c
blobbf5713008a1bfa8c3d6c309c8b8b6c06a5582a50
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"
12 #include "qemu/throttle-options.h"
14 static QemuOptsList qemu_fsdev_opts = {
15 .name = "fsdev",
16 .implied_opt_name = "fsdriver",
17 .head = QTAILQ_HEAD_INITIALIZER(qemu_fsdev_opts.head),
18 .desc = {
20 .name = "fsdriver",
21 .type = QEMU_OPT_STRING,
22 }, {
23 .name = "path",
24 .type = QEMU_OPT_STRING,
25 }, {
26 .name = "security_model",
27 .type = QEMU_OPT_STRING,
28 }, {
29 .name = "writeout",
30 .type = QEMU_OPT_STRING,
31 }, {
32 .name = "readonly",
33 .type = QEMU_OPT_BOOL,
35 }, {
36 .name = "socket",
37 .type = QEMU_OPT_STRING,
38 }, {
39 .name = "sock_fd",
40 .type = QEMU_OPT_NUMBER,
43 THROTTLE_OPTS,
45 { /*End of list */ }
49 static QemuOptsList qemu_virtfs_opts = {
50 .name = "virtfs",
51 .implied_opt_name = "fsdriver",
52 .head = QTAILQ_HEAD_INITIALIZER(qemu_virtfs_opts.head),
53 .desc = {
55 .name = "fsdriver",
56 .type = QEMU_OPT_STRING,
57 }, {
58 .name = "path",
59 .type = QEMU_OPT_STRING,
60 }, {
61 .name = "mount_tag",
62 .type = QEMU_OPT_STRING,
63 }, {
64 .name = "security_model",
65 .type = QEMU_OPT_STRING,
66 }, {
67 .name = "writeout",
68 .type = QEMU_OPT_STRING,
69 }, {
70 .name = "readonly",
71 .type = QEMU_OPT_BOOL,
72 }, {
73 .name = "socket",
74 .type = QEMU_OPT_STRING,
75 }, {
76 .name = "sock_fd",
77 .type = QEMU_OPT_NUMBER,
80 { /*End of list */ }
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);