summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-07-31 12:25:36 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:05:26 -0500
commitd058fe03e53699b5a85db1ea36edcf59273775a8 (patch)
treea3c098a7931ff36df0e564709b06ccc255f456ce /vl.c
parent7282a0331f11edd021efa3687dc2ec7fd557ace9 (diff)
downloadqemu-d058fe03e53699b5a85db1ea36edcf59273775a8.tar.gz
qemu-d058fe03e53699b5a85db1ea36edcf59273775a8.tar.bz2
qemu-d058fe03e53699b5a85db1ea36edcf59273775a8.zip
QemuOpts: add -set option
One use case will be file for drives (no filename quoting issues), i.e. -drive id=test,if=virtio -set drive.test.file=/vmdisk/test-virtio.img It will work for any other option (assuming handled by QemuOpts) though. Except for id= for obvious reasons ;). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index ca84fa9793..5542df31bf 100644
--- a/vl.c
+++ b/vl.c
@@ -4966,6 +4966,10 @@ int main(int argc, char **argv, char **envp)
case QEMU_OPTION_drive:
drive_add(NULL, "%s", optarg);
break;
+ case QEMU_OPTION_set:
+ if (qemu_set_option(optarg) != 0)
+ exit(1);
+ break;
case QEMU_OPTION_mtdblock:
drive_add(optarg, MTD_ALIAS);
break;