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 /fsdev | |
parent | 6b62dc2dd7d590815a3b7713633ce59ef64a17d4 (diff) | |
download | hqemu-526c523781fd3684a1902322b1d67785eae15f5b.zip hqemu-526c523781fd3684a1902322b1d67785eae15f5b.tar.gz |
Use machine_init() to register virtfs config options.
Diffstat (limited to 'fsdev')
-rw-r--r-- | fsdev/qemu-fsdev.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fsdev/qemu-fsdev.c b/fsdev/qemu-fsdev.c index ad69b0e..280b8f5 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); + |