Revision 74db920c vl.c
b/vl.c | ||
---|---|---|
149 | 149 |
#include "qemu-option.h" |
150 | 150 |
#include "qemu-config.h" |
151 | 151 |
#include "qemu-objects.h" |
152 |
#ifdef CONFIG_LINUX |
|
153 |
#include "fsdev/qemu-fsdev.h" |
|
154 |
#endif |
|
152 | 155 |
|
153 | 156 |
#include "disas.h" |
154 | 157 |
|
... | ... | |
2310 | 2313 |
return 0; |
2311 | 2314 |
} |
2312 | 2315 |
|
2316 |
#ifdef CONFIG_LINUX |
|
2317 |
static int fsdev_init_func(QemuOpts *opts, void *opaque) |
|
2318 |
{ |
|
2319 |
int ret; |
|
2320 |
ret = qemu_fsdev_add(opts); |
|
2321 |
|
|
2322 |
return ret; |
|
2323 |
} |
|
2324 |
#endif |
|
2325 |
|
|
2313 | 2326 |
static int mon_init_func(QemuOpts *opts, void *opaque) |
2314 | 2327 |
{ |
2315 | 2328 |
CharDriverState *chr; |
... | ... | |
3081 | 3094 |
exit(1); |
3082 | 3095 |
} |
3083 | 3096 |
break; |
3097 |
#ifdef CONFIG_LINUX |
|
3098 |
case QEMU_OPTION_fsdev: |
|
3099 |
opts = qemu_opts_parse(&qemu_fsdev_opts, optarg, 1); |
|
3100 |
if (!opts) { |
|
3101 |
fprintf(stderr, "parse error: %s\n", optarg); |
|
3102 |
exit(1); |
|
3103 |
} |
|
3104 |
break; |
|
3105 |
#endif |
|
3084 | 3106 |
case QEMU_OPTION_serial: |
3085 | 3107 |
add_device_config(DEV_SERIAL, optarg); |
3086 | 3108 |
default_serial = 0; |
... | ... | |
3437 | 3459 |
|
3438 | 3460 |
if (qemu_opts_foreach(&qemu_chardev_opts, chardev_init_func, NULL, 1) != 0) |
3439 | 3461 |
exit(1); |
3462 |
#ifdef CONFIG_LINUX |
|
3463 |
if (qemu_opts_foreach(&qemu_fsdev_opts, fsdev_init_func, NULL, 1) != 0) { |
|
3464 |
exit(1); |
|
3465 |
} |
|
3466 |
#endif |
|
3440 | 3467 |
|
3441 | 3468 |
#ifndef _WIN32 |
3442 | 3469 |
if (daemonize) { |
Also available in: Unified diff