2009-09-10 16:58:34 +08:00
|
|
|
#ifndef QEMU_CONFIG_H
|
|
|
|
#define QEMU_CONFIG_H
|
|
|
|
|
2012-03-29 01:16:37 +08:00
|
|
|
#include "error.h"
|
|
|
|
|
2010-04-29 20:14:43 +08:00
|
|
|
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 20:15:03 +08:00
|
|
|
extern QemuOptsList qemu_virtfs_opts;
|
2010-03-11 22:13:27 +08:00
|
|
|
extern QemuOptsList qemu_spice_opts;
|
2009-07-31 18:25:36 +08:00
|
|
|
|
2010-02-11 03:09:14 +08:00
|
|
|
QemuOptsList *qemu_find_opts(const char *group);
|
2012-03-29 01:16:37 +08:00
|
|
|
QemuOptsList *qemu_find_opts_err(const char *group, Error **errp);
|
2010-08-20 19:52:00 +08:00
|
|
|
void qemu_add_opts(QemuOptsList *list);
|
2009-07-31 18:25:36 +08:00
|
|
|
int qemu_set_option(const char *str);
|
2009-12-08 20:11:34 +08:00
|
|
|
int qemu_global_option(const char *str);
|
|
|
|
void qemu_add_globals(void);
|
2009-09-10 16:58:34 +08:00
|
|
|
|
2009-10-14 16:39:26 +08:00
|
|
|
void qemu_config_write(FILE *fp);
|
2010-03-06 01:21:56 +08:00
|
|
|
int qemu_config_parse(FILE *fp, QemuOptsList **lists, const char *fname);
|
2009-10-14 16:39:26 +08:00
|
|
|
|
2010-03-06 00:25:55 +08:00
|
|
|
int qemu_read_config_file(const char *filename);
|
|
|
|
|
2012-06-16 15:29:10 +08:00
|
|
|
/* Read default QEMU config files
|
2012-05-03 00:07:25 +08:00
|
|
|
*/
|
2012-05-03 00:07:29 +08:00
|
|
|
int qemu_read_default_config_files(bool userconfig);
|
2012-05-03 00:07:25 +08:00
|
|
|
|
2009-09-10 16:58:34 +08:00
|
|
|
#endif /* QEMU_CONFIG_H */
|