2009-09-10 10:58:34 +02:00
|
|
|
#ifndef QEMU_CONFIG_H
|
|
|
|
#define QEMU_CONFIG_H
|
|
|
|
|
2009-07-31 12:25:35 +02:00
|
|
|
extern QemuOptsList qemu_drive_opts;
|
2009-09-10 10:58:35 +02:00
|
|
|
extern QemuOptsList qemu_chardev_opts;
|
2010-04-29 14:14:43 +02:00
|
|
|
#ifdef CONFIG_LINUX
|
|
|
|
extern QemuOptsList qemu_fsdev_opts;
|
virtio-9p: Create a syntactic shortcut for the file-system pass-thru
Currently the commandline to create a virtual-filesystem pass-through between
the guest and the host is as follows:
#qemu -fsdev fstype,id=ID,path=path/to/share \
-device virtio-9p-pci,fsdev=ID,mount_tag=tag \
This patch provides a syntactic short-cut to achieve the same as follows:
#qemu -virtfs fstype,path=path/to/share,mount_tag=tag
This will be internally expanded as:
#qemu -fsdev fstype,id=tag,path=path/to/share, \
-device virtio-9p-pci,fsdev=tag,mount_tag=tag \
Signed-off-by: Gautham R Shenoy <ego@in.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2010-04-29 14:15:03 +02:00
|
|
|
extern QemuOptsList qemu_virtfs_opts;
|
2010-04-29 14:14:43 +02:00
|
|
|
#endif
|
2009-07-31 12:25:37 +02:00
|
|
|
extern QemuOptsList qemu_device_opts;
|
2009-10-08 20:58:26 +02:00
|
|
|
extern QemuOptsList qemu_netdev_opts;
|
2009-10-06 13:17:05 +02:00
|
|
|
extern QemuOptsList qemu_net_opts;
|
2009-09-15 13:36:04 +02:00
|
|
|
extern QemuOptsList qemu_rtc_opts;
|
2009-12-16 14:25:40 +01:00
|
|
|
extern QemuOptsList qemu_global_opts;
|
2009-12-08 13:11:50 +01:00
|
|
|
extern QemuOptsList qemu_mon_opts;
|
2010-02-20 18:14:59 +01:00
|
|
|
extern QemuOptsList qemu_cpudef_opts;
|
2009-07-31 12:25:36 +02:00
|
|
|
|
2010-02-10 20:09:14 +01:00
|
|
|
QemuOptsList *qemu_find_opts(const char *group);
|
2009-07-31 12:25:36 +02:00
|
|
|
int qemu_set_option(const char *str);
|
2009-12-08 13:11:34 +01:00
|
|
|
int qemu_global_option(const char *str);
|
|
|
|
void qemu_add_globals(void);
|
2009-09-10 10:58:34 +02:00
|
|
|
|
2009-10-14 10:39:26 +02:00
|
|
|
void qemu_config_write(FILE *fp);
|
2010-03-05 18:21:56 +01:00
|
|
|
int qemu_config_parse(FILE *fp, QemuOptsList **lists, const char *fname);
|
2009-10-14 10:39:26 +02:00
|
|
|
|
2010-03-05 17:25:55 +01:00
|
|
|
int qemu_read_config_file(const char *filename);
|
|
|
|
|
2009-09-10 10:58:34 +02:00
|
|
|
#endif /* QEMU_CONFIG_H */
|