diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-10-31 11:06:02 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-10-31 11:06:02 -0500 |
commit | d439b79d730bf219e47c14ab94f1546bcc5045ab (patch) | |
tree | c8d0ae00ff1e86e7ecdaac028d2b2db30305f0c3 /vl.c | |
parent | 96b3d73f5ad5838690d42666c566a48be9d173dc (diff) | |
parent | 2583e443676e6b9259425f7d5ccaccbfa9bf7886 (diff) | |
download | qemu-d439b79d730bf219e47c14ab94f1546bcc5045ab.zip qemu-d439b79d730bf219e47c14ab94f1546bcc5045ab.tar.gz qemu-d439b79d730bf219e47c14ab94f1546bcc5045ab.tar.bz2 |
Merge remote-tracking branch 'aneesh/for-upstream-7' into staging
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -2707,6 +2707,8 @@ int main(int argc, char **argv, char **envp) qemu_opt_set(fsdev, "security_model", qemu_opt_get(opts, "security_model")); + qemu_opt_set_bool(fsdev, "readonly", + qemu_opt_get_bool(opts, "readonly", 0)); device = qemu_opts_create(qemu_find_opts("device"), NULL, 0); qemu_opt_set(device, "driver", "virtio-9p-pci"); qemu_opt_set(device, "fsdev", @@ -2715,6 +2717,24 @@ int main(int argc, char **argv, char **envp) qemu_opt_get(opts, "mount_tag")); break; } + case QEMU_OPTION_virtfs_synth: { + QemuOpts *fsdev; + QemuOpts *device; + + fsdev = qemu_opts_create(qemu_find_opts("fsdev"), "v_synth", 1); + if (!fsdev) { + fprintf(stderr, "duplicate option: %s\n", "virtfs_synth"); + exit(1); + } + qemu_opt_set(fsdev, "fsdriver", "synth"); + qemu_opt_set(fsdev, "path", "/"); /* ignored */ + + device = qemu_opts_create(qemu_find_opts("device"), NULL, 0); + qemu_opt_set(device, "driver", "virtio-9p-pci"); + qemu_opt_set(device, "fsdev", "v_synth"); + qemu_opt_set(device, "mount_tag", "v_synth"); + break; + } case QEMU_OPTION_serial: add_device_config(DEV_SERIAL, optarg); default_serial = 0; |