diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-12-08 13:11:46 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-12 07:59:43 -0600 |
commit | d8c208dd8a038d24ba4890156101bc679a8c8fef (patch) | |
tree | dd068d2e2ee311925417a85fb6bf7552ba1f0ad0 | |
parent | 64465297cd4c701942988f36f7ce707fb21cc1d8 (diff) |
default devices: add global cmd line option.
Add global command line option to disable default devices.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | qemu-options.hx | 5 | ||||
-rw-r--r-- | vl.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/qemu-options.hx b/qemu-options.hx index 420b7d847e..e05b2a0b8d 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -1881,6 +1881,11 @@ DEF("incoming", HAS_ARG, QEMU_OPTION_incoming, \ STEXI ETEXI +DEF("nodefaults", 0, QEMU_OPTION_nodefaults, \ + "-nodefaults don't create default devices.\n") +STEXI +ETEXI + #ifndef _WIN32 DEF("chroot", HAS_ARG, QEMU_OPTION_chroot, \ "-chroot dir Chroot to dir just before starting the VM.\n") @@ -5471,6 +5471,12 @@ int main(int argc, char **argv, char **envp) case QEMU_OPTION_incoming: incoming = optarg; break; + case QEMU_OPTION_nodefaults: + default_serial = 0; + default_parallel = 0; + default_monitor = 0; + default_vga = 0; + break; #ifndef _WIN32 case QEMU_OPTION_chroot: chroot_dir = optarg; |