diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-08-25 12:19:49 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2010-09-21 18:35:30 +0200 |
commit | 526c523781fd3684a1902322b1d67785eae15f5b (patch) | |
tree | 574c4f64279667ce87ce8c50ee1f6ab5778b4cc5 | |
parent | 6b62dc2dd7d590815a3b7713633ce59ef64a17d4 (diff) |
Use machine_init() to register virtfs config options.
-rw-r--r-- | fsdev/qemu-fsdev.c | 9 | ||||
-rw-r--r-- | vl.c | 5 |
2 files changed, 9 insertions, 5 deletions
diff --git a/fsdev/qemu-fsdev.c b/fsdev/qemu-fsdev.c index ad69b0ea4..280b8f57b 100644 --- a/fsdev/qemu-fsdev.c +++ b/fsdev/qemu-fsdev.c @@ -16,6 +16,7 @@ #include "qemu-queue.h" #include "osdep.h" #include "qemu-common.h" +#include "qemu-config.h" static QTAILQ_HEAD(FsTypeEntry_head, FsTypeListEntry) fstype_entries = QTAILQ_HEAD_INITIALIZER(fstype_entries); @@ -75,3 +76,11 @@ FsTypeEntry *get_fsdev_fsentry(char *id) } return NULL; } + +static void fsdev_register_config(void) +{ + qemu_add_opts(&qemu_fsdev_opts); + qemu_add_opts(&qemu_virtfs_opts); +} +machine_init(fsdev_register_config); + @@ -1863,11 +1863,6 @@ int main(int argc, char **argv, char **envp) tb_size = 0; autostart= 1; -#ifdef CONFIG_VIRTFS - qemu_add_opts(&qemu_fsdev_opts); - qemu_add_opts(&qemu_virtfs_opts); -#endif - /* first pass of option parsing */ optind = 1; while (optind < argc) { |