aboutsummaryrefslogtreecommitdiffstats
path: root/fsdev
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-08-25 12:19:49 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-09-21 18:35:30 +0200
commit526c523781fd3684a1902322b1d67785eae15f5b (patch)
tree574c4f64279667ce87ce8c50ee1f6ab5778b4cc5 /fsdev
parent6b62dc2dd7d590815a3b7713633ce59ef64a17d4 (diff)
Use machine_init() to register virtfs config options.
Diffstat (limited to 'fsdev')
-rw-r--r--fsdev/qemu-fsdev.c9
1 files changed, 9 insertions, 0 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);
+