[RFC PATCH 00/15] softmmu: Make various objects target agnostic

Philippe Mathieu-Daudé posted 15 patches 2 years, 11 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210517115525.1088693-1-f4bug@amsat.org
There is a newer version of this series
include/exec/cpu-common.h       |  23 +++++++
include/exec/exec-all.h         |  25 -------
include/exec/gdbstub.h          |  23 ++++---
include/sysemu/hax.h            |  14 +---
include/sysemu/kvm.h            |   6 +-
include/sysemu/memory_mapping.h |   3 +-
include/sysemu/whpx.h           |  15 +----
accel/stubs/hax-stub.c          |   5 ++
accel/stubs/kvm-stub.c          |  11 +--
accel/stubs/whpx-stub.c         |  21 ++++++
hw/acpi/memory_hotplug.c        |   1 -
softmmu/cpu-timers.c            |   1 -
softmmu/cpus-qmp.c              | 115 ++++++++++++++++++++++++++++++++
softmmu/cpus.c                  |  89 ------------------------
softmmu/globals.c               |   2 -
softmmu/memory_mapping.c        |   1 +
softmmu/runstate.c              |   2 +-
target/i386/hax/hax-all.c       |   2 +-
target/i386/whpx/whpx-all.c     |   2 +-
MAINTAINERS                     |   1 +
accel/meson.build               |  10 +--
accel/stubs/meson.build         |   1 +
softmmu/meson.build             |  25 +++----
23 files changed, 213 insertions(+), 185 deletions(-)
create mode 100644 accel/stubs/whpx-stub.c
create mode 100644 softmmu/cpus-qmp.c
[RFC PATCH 00/15] softmmu: Make various objects target agnostic
Posted by Philippe Mathieu-Daudé 2 years, 11 months ago
Few changes to speed up builds, removing 330 objects.

RFC because of:
- accel hax/whpx changes
- sysemu/memory_mapping target_ulong -> hwaddr
which i'm not sure of the impacts.

Philippe Mathieu-Daudé (15):
  accel/kvm: Add more stubs
  accel/whpx: Simplify #ifdef'ry
  accel/hax: Simplify #ifdef'ry
  accel: Only use TCG when building user-mode emulation
  accel/kvm: Simplify user-mode #ifdef'ry
  hw/acpi/memory_hotplug: Remove unused 'hw/acpi/pc-hotplug.h' header
  softmmu/globals: Remove unused 'hw/i386/*' headers
  softmmu/cpu-timers: Remove unused 'exec/exec-all.h' header
  softmmu/runstate: Clean headers
  exec/gdbstub: Make gdb_exit() / gdb_set_stop_cpu() target agnostic
  exec/cpu: Make address_space_init/reloading_memory_map target agnostic
  sysemu/kvm: Make kvm_on_sigbus() / kvm_on_sigbus_vcpu() target
    agnostic
  sysemu/memory_mapping: Become target-agnostic
  softmmu/cpus: Extract QMP command handlers to cpus-qmp.c
  softmmu: Build target-agnostic objects once

 include/exec/cpu-common.h       |  23 +++++++
 include/exec/exec-all.h         |  25 -------
 include/exec/gdbstub.h          |  23 ++++---
 include/sysemu/hax.h            |  14 +---
 include/sysemu/kvm.h            |   6 +-
 include/sysemu/memory_mapping.h |   3 +-
 include/sysemu/whpx.h           |  15 +----
 accel/stubs/hax-stub.c          |   5 ++
 accel/stubs/kvm-stub.c          |  11 +--
 accel/stubs/whpx-stub.c         |  21 ++++++
 hw/acpi/memory_hotplug.c        |   1 -
 softmmu/cpu-timers.c            |   1 -
 softmmu/cpus-qmp.c              | 115 ++++++++++++++++++++++++++++++++
 softmmu/cpus.c                  |  89 ------------------------
 softmmu/globals.c               |   2 -
 softmmu/memory_mapping.c        |   1 +
 softmmu/runstate.c              |   2 +-
 target/i386/hax/hax-all.c       |   2 +-
 target/i386/whpx/whpx-all.c     |   2 +-
 MAINTAINERS                     |   1 +
 accel/meson.build               |  10 +--
 accel/stubs/meson.build         |   1 +
 softmmu/meson.build             |  25 +++----
 23 files changed, 213 insertions(+), 185 deletions(-)
 create mode 100644 accel/stubs/whpx-stub.c
 create mode 100644 softmmu/cpus-qmp.c

-- 
2.26.3