qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 00/14] convert many options to QemuOpts


From: Paolo Bonzini
Subject: [Qemu-devel] [PATCH v2 00/14] convert many options to QemuOpts
Date: Wed, 11 Apr 2012 23:34:27 +0200

This series convert most commonly-used legacy command-line options to
be simple wrappers for the QemuOpts equivalents.  This ensures that they
are printed out by -writeconfig, thus actually making -writeconfig
useful...

This converts a lot of commonly-used options to QemuOpts.  Most of them
get in -machine, but I don't intend -machine to become a catch-all option.
In fact I refrained from converting those that should go in -display
(like -keyboard) or should be converted to enums (either as device
properties or as options).

With the exception of -display, now a more-or-less complete PC machine
can be created from config.  This is unfortunately not true of most
embedded machines which use arrays such as serial_hd to create devices
and do not support using -device instead.

This does not mean that all options can be used.  Only -monitor and
-qmp create a backend/frontend pair in QemuOpts, so things such as
-serial stdio will not work.

v1->v2
        removed -no-shutdown/-no-reboot waiting for better enum
        infrastructure; added -acpitable, -smbios, -uuid

Paolo Bonzini (14):
  QemuOpts: use strtosz
  cmdline: implement -m with QemuOpts
  cmdline: implement -S with QemuOpts
  cmdline: implement -bios with QemuOpts
  cmdline: implement -localtime with QemuOpts
  cmdline: make -M a simple alias for -machine type
  cmdline: accept NULL opts in qemu_opt_find
  cmdline: implement -nodefaults with qemuopts
  cmdline: convert -smp to QemuOpts
  cmdline: reindent numa_add
  cmdline: convert -numa to QemuOpts
  cmdline: convert -acpitable to QemuOpts
  cmdline: convert -smbios and -uuid to QemuOpts
  QemuOpts: correctly skip escaped ,id=

 arch_init.c   |   44 ++-------
 arch_init.h   |    2 -
 hw/acpi.c     |   96 +++++++-----------
 hw/pc.h       |    2 +-
 hw/smbios.c   |  155 ++++++++++++++++++++++++-----
 hw/smbios.h   |    4 +-
 qemu-config.c |  137 +++++++++++++++++++++++++
 qemu-option.c |   52 +++-------
 vl.c          |  307 +++++++++++++++++++++++++++++----------------------------
 9 files changed, 492 insertions(+), 307 deletions(-)

-- 
1.7.9.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]