summary refs log tree commit diff stats
path: root/qemu-options.hx
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-10-14 10:39:28 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-11-09 08:43:13 -0600
commit715a664ac4ca3b9e44ffbc0ca41ecd91fbe96656 (patch)
tree514787bcc35af1e133d2cfd61be0b72f58d266dd /qemu-options.hx
parent42262ba860f9d0186efe7ea74266207e30ddd0d0 (diff)
downloadfocaccia-qemu-715a664ac4ca3b9e44ffbc0ca41ecd91fbe96656.tar.gz
focaccia-qemu-715a664ac4ca3b9e44ffbc0ca41ecd91fbe96656.zip
QemuOpts: command line switches for the config file.
Adds -readconfig and -writeconfig command line switches to read/write
QemuOpts from config file.

In theory you should be able to do:

  qemu < machine config cmd line switches here > -writeconfig vm.cfg
  qemu -readconfig vm.cfg

In practice it will not work.  Not all command line switches are
converted to QemuOpts, so you'll have to keep the not-yet converted ones
on the second line.  Also there might be bugs lurking which prevent even
the converted ones from working correctly.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-options.hx')
-rw-r--r--qemu-options.hx5
1 files changed, 5 insertions, 0 deletions
diff --git a/qemu-options.hx b/qemu-options.hx
index 792219175a..b65fd74f32 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -1915,3 +1915,8 @@ DEF("semihosting", 0, QEMU_OPTION_semihosting,
 DEF("old-param", 0, QEMU_OPTION_old_param,
     "-old-param      old param mode\n")
 #endif
+DEF("readconfig", HAS_ARG, QEMU_OPTION_readconfig,
+    "-readconfig <file>\n")
+DEF("writeconfig", HAS_ARG, QEMU_OPTION_writeconfig,
+    "-writeconfig <file>\n"
+    "                read/write config file")