Skip to content

Commit

Permalink
Use machine_init() to register virtfs config options.
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxel committed Sep 21, 2010
1 parent 6b62dc2 commit 526c523
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 9 additions & 0 deletions fsdev/qemu-fsdev.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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);

5 changes: 0 additions & 5 deletions vl.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 526c523

Please sign in to comment.