memory: add support getting and using a dirty bitmap copy.
[qemu.git] / fsdev / qemu-fsdev-opts.c
1 /*
2 * 9p
3 *
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 */
7
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"
13
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 = {
19 {
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,
34
35 }, {
36 .name = "socket",
37 .type = QEMU_OPT_STRING,
38 }, {
39 .name = "sock_fd",
40 .type = QEMU_OPT_NUMBER,
41 },
42
43 THROTTLE_OPTS,
44
45 { /*End of list */ }
46 },
47 };
48
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 = {
54 {
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,
78 },
79
80 { /*End of list */ }
81 },
82 };
83
84 static void fsdev_register_config(void)
85 {
86 qemu_add_opts(&qemu_fsdev_opts);
87 qemu_add_opts(&qemu_virtfs_opts);
88 }
89 opts_init(fsdev_register_config);