All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Subject: [PATCH v3 00/36] cleanup qemu_init and make sense of command line processing
Date: Mon, 23 Nov 2020 09:13:59 -0500	[thread overview]
Message-ID: <20201123141435.2726558-1-pbonzini@redhat.com> (raw)

Incompatible changes WRT 5.x:

- "-incoming defer" will not generate a MIGRATION event until
  the migrate-incoming command is sent

- the "preconfig" runstate is not reported anymore, and is replaced
  with "prelaunch"

Since the patches build on a bunch of more mechanical changes to
remove the ram_size and bios_name global variables, which affect
all targets, I have already placed the result in the for-6.0 branch of
my gitlab repository.  The branch has also passed CI already.

Thanks,

Paolo

Paolo Bonzini (36):
  vl: extract validation of -smp to machine.c
  vl: remove bogus check
  vl: split various early command line options to a separate function
  vl: move various initialization routines out of qemu_init
  vl: extract qemu_init_subsystems
  vl: move prelaunch part of qemu_init to new functions
  vl: extract various command line validation snippets to a new function
  vl: preconfig and loadvm are mutually exclusive
  vl: extract various command line desugaring snippets to a new function
  qemu-option: restrict qemu_opts_set to merge-lists QemuOpts
  vl: create "-net nic -net user" default earlier
  vl: load plugins as late as possible
  vl: move semihosting command line fallback to qemu_init_board
  vl: extract default devices to separate functions
  vl: move CHECKPOINT_INIT after preconfig
  vl: separate qemu_create_early_backends
  vl: separate qemu_create_late_backends
  vl: separate qemu_create_machine
  vl: separate qemu_apply_machine_options
  vl: separate qemu_resolve_machine_memdev
  vl: initialize displays before preconfig loop
  vl: move -global check earlier
  migration, vl: start migration via qmp_migrate_incoming
  vl: start VM via qmp_cont
  hmp: introduce cmd_available
  remove preconfig state
  vl: remove separate preconfig main_loop
  vl: allow -incoming defer with -preconfig
  vl: extract softmmu/datadir.c
  vl: extract machine done notifiers
  vl: extract softmmu/rtc.c
  vl: extract softmmu/runstate.c
  vl: extract softmmu/globals.c
  vl: remove serial_max_hds
  vl: clean up -boot variables
  vl: move all generic initialization out of vl.c

 hw/alpha/dp264.c              |    1 +
 hw/arm/boot.c                 |    1 +
 hw/arm/digic_boards.c         |    1 +
 hw/arm/highbank.c             |    1 +
 hw/arm/npcm7xx_boards.c       |    1 +
 hw/arm/sbsa-ref.c             |    1 +
 hw/arm/vexpress.c             |    1 +
 hw/arm/virt.c                 |    1 +
 hw/avr/boot.c                 |    1 +
 hw/core/loader.c              |    1 +
 hw/core/machine-qmp-cmds.c    |    5 +-
 hw/core/machine.c             |  103 ++
 hw/core/qdev.c                |   12 +-
 hw/display/cg3.c              |    1 +
 hw/display/tcx.c              |    1 +
 hw/hppa/machine.c             |    1 +
 hw/i386/x86.c                 |    1 +
 hw/lm32/milkymist.c           |    1 +
 hw/m68k/mcf5208.c             |    1 +
 hw/m68k/q800.c                |    1 +
 hw/microblaze/boot.c          |    1 +
 hw/mips/fuloong2e.c           |    1 +
 hw/mips/jazz.c                |    1 +
 hw/mips/malta.c               |    1 +
 hw/mips/mipssim.c             |    1 +
 hw/nios2/boot.c               |    1 +
 hw/nvram/fw_cfg.c             |    1 +
 hw/pci-host/prep.c            |    1 +
 hw/pci/pci.c                  |    1 +
 hw/ppc/e500.c                 |    1 +
 hw/ppc/mac_newworld.c         |    1 +
 hw/ppc/mac_oldworld.c         |    1 +
 hw/ppc/pnv.c                  |    1 +
 hw/ppc/ppc405_boards.c        |    1 +
 hw/ppc/ppc440_bamboo.c        |    1 +
 hw/ppc/sam460ex.c             |    1 +
 hw/ppc/spapr.c                |    7 +-
 hw/ppc/virtex_ml507.c         |    1 +
 hw/riscv/boot.c               |    1 +
 hw/s390x/ipl.c                |    1 +
 hw/sparc/leon3.c              |    1 +
 hw/sparc/sun4m.c              |    1 +
 hw/sparc64/sun4u.c            |    1 +
 include/exec/cpu-common.h     |    3 +
 include/exec/exec-all.h       |    3 -
 include/hw/boards.h           |    2 +
 include/hw/qdev-core.h        |    9 +-
 include/migration/misc.h      |    1 -
 include/qapi/qmp/dispatch.h   |    1 +
 include/qemu-common.h         |   21 -
 include/qemu/datadir.h        |   28 +
 include/qemu/option.h         |    3 +-
 include/sysemu/runstate.h     |    1 -
 include/sysemu/sysemu.h       |   12 +-
 migration/migration.c         |   37 +-
 monitor/hmp.c                 |   23 +-
 monitor/qmp-cmds.c            |   10 -
 qapi/qmp-dispatch.c           |    5 +-
 qapi/run-state.json           |    5 +-
 softmmu/datadir.c             |  129 ++
 softmmu/globals.c             |   74 +
 softmmu/meson.build           |    4 +
 softmmu/qdev-monitor.c        |   18 +-
 softmmu/rtc.c                 |  190 +++
 softmmu/runstate.c            |  800 ++++++++++
 softmmu/vl.c                  | 2761 ++++++++++-----------------------
 stubs/meson.build             |    1 +
 stubs/qmp-command-available.c |    7 +
 tests/qtest/fuzz/fuzz.c       |    1 +
 tests/qtest/qmp-test.c        |    2 +-
 tests/test-qemu-opts.c        |   20 +-
 ui/keymaps.c                  |    1 +
 util/qemu-option.c            |    9 +-
 73 files changed, 2311 insertions(+), 2036 deletions(-)
 create mode 100644 include/qemu/datadir.h
 create mode 100644 softmmu/datadir.c
 create mode 100644 softmmu/globals.c
 create mode 100644 softmmu/rtc.c
 create mode 100644 softmmu/runstate.c
 create mode 100644 stubs/qmp-command-available.c

-- 
2.26.2



             reply	other threads:[~2020-11-23 14:15 UTC|newest]

Thread overview: 70+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-23 14:13 Paolo Bonzini [this message]
2020-11-23 14:14 ` [PATCH 01/36] vl: extract validation of -smp to machine.c Paolo Bonzini
2020-11-23 14:14 ` [PATCH 02/36] vl: remove bogus check Paolo Bonzini
2020-11-23 14:14 ` [PATCH 03/36] vl: split various early command line options to a separate function Paolo Bonzini
2020-11-26 16:47   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 04/36] vl: move various initialization routines out of qemu_init Paolo Bonzini
2020-11-23 14:14 ` [PATCH 05/36] vl: extract qemu_init_subsystems Paolo Bonzini
2020-11-23 14:14 ` [PATCH 06/36] vl: move prelaunch part of qemu_init to new functions Paolo Bonzini
2020-11-23 14:14 ` [PATCH 07/36] vl: extract various command line validation snippets to a new function Paolo Bonzini
2020-11-23 14:14 ` [PATCH 08/36] vl: preconfig and loadvm are mutually exclusive Paolo Bonzini
2020-11-23 14:14 ` [PATCH 09/36] vl: extract various command line desugaring snippets to a new function Paolo Bonzini
2020-11-23 14:14 ` [PATCH 10/36] qemu-option: restrict qemu_opts_set to merge-lists QemuOpts Paolo Bonzini
2020-11-23 14:14 ` [PATCH 11/36] vl: create "-net nic -net user" default earlier Paolo Bonzini
2020-11-23 14:14 ` [PATCH 12/36] vl: load plugins as late as possible Paolo Bonzini
2020-11-26 16:54   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 13/36] vl: move semihosting command line fallback to qemu_init_board Paolo Bonzini
2020-11-26 17:10   ` Igor Mammedov
2020-11-27  5:03     ` Paolo Bonzini
2020-11-27 10:31       ` Igor Mammedov
2020-11-27 11:22         ` Paolo Bonzini
2020-11-27 12:12           ` Igor Mammedov
2020-11-27 12:22             ` Paolo Bonzini
2020-11-23 14:14 ` [PATCH 14/36] vl: extract default devices to separate functions Paolo Bonzini
2020-11-26 17:29   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 15/36] vl: move CHECKPOINT_INIT after preconfig Paolo Bonzini
2020-11-26 17:36   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 16/36] vl: separate qemu_create_early_backends Paolo Bonzini
2020-11-23 14:14 ` [PATCH 17/36] vl: separate qemu_create_late_backends Paolo Bonzini
2020-11-23 14:14 ` [PATCH 18/36] vl: separate qemu_create_machine Paolo Bonzini
2020-11-23 14:14 ` [PATCH 19/36] vl: separate qemu_apply_machine_options Paolo Bonzini
2020-11-23 14:14 ` [PATCH 20/36] vl: separate qemu_resolve_machine_memdev Paolo Bonzini
2020-11-26 17:39   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 21/36] vl: initialize displays before preconfig loop Paolo Bonzini
2020-11-26 17:51   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 22/36] vl: move -global check earlier Paolo Bonzini
2020-11-26 17:55   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 23/36] migration, vl: start migration via qmp_migrate_incoming Paolo Bonzini
2020-11-26 18:04   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 24/36] vl: start VM via qmp_cont Paolo Bonzini
2020-11-23 14:14 ` [PATCH 25/36] hmp: introduce cmd_available Paolo Bonzini
2020-11-23 14:14 ` [PATCH 26/36] remove preconfig state Paolo Bonzini
2020-11-26 18:55   ` Igor Mammedov
2020-11-27  5:19     ` Paolo Bonzini
2020-11-27 10:50       ` Igor Mammedov
2020-11-27 11:50         ` Paolo Bonzini
2020-11-30 12:41           ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 27/36] vl: remove separate preconfig main_loop Paolo Bonzini
2020-11-30 12:46   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 28/36] vl: allow -incoming defer with -preconfig Paolo Bonzini
2020-11-27 10:51   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 29/36] vl: extract softmmu/datadir.c Paolo Bonzini
2020-11-27 12:06   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 30/36] vl: extract machine done notifiers Paolo Bonzini
2020-11-27 12:14   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 31/36] vl: extract softmmu/rtc.c Paolo Bonzini
2020-11-27 12:43   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 32/36] vl: extract softmmu/runstate.c Paolo Bonzini
2020-11-27 12:59   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 33/36] vl: extract softmmu/globals.c Paolo Bonzini
2020-11-27 13:19   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 34/36] vl: remove serial_max_hds Paolo Bonzini
2020-11-27 13:11   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 35/36] vl: clean up -boot variables Paolo Bonzini
2020-11-27 13:12   ` Igor Mammedov
2020-11-23 14:14 ` [PATCH 36/36] vl: move all generic initialization out of vl.c Paolo Bonzini
2020-11-27 13:30   ` Igor Mammedov
2020-11-27 12:00 ` [PATCH 37/36] machine: introduce MachineInitPhase Paolo Bonzini
2020-11-27 13:29   ` Igor Mammedov
2020-11-27 15:29     ` Paolo Bonzini
2020-11-30 12:50 ` [PATCH v3 00/36] cleanup qemu_init and make sense of command line processing Igor Mammedov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201123141435.2726558-1-pbonzini@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.