qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/21] softmmu: Make various objects target agnostic
@ 2022-02-03 19:17 Philippe Mathieu-Daudé via
  2022-02-03 19:17 ` [PATCH v2 01/21] accel: Restrict sysemu stubs to system emulation Philippe Mathieu-Daudé via
                   ` (21 more replies)
  0 siblings, 22 replies; 39+ messages in thread
From: Philippe Mathieu-Daudé via @ 2022-02-03 19:17 UTC (permalink / raw)
  To: qemu-devel
  Cc: Richard Henderson, Thomas Huth, Paolo Bonzini,
	Philippe Mathieu-Daudé

This is a re-org accel/ and softmmu/ to have more target-agnostic
objects.

Since RFC:
- Rework accel/meson (Richard)
- Use vaddr in cpu_memory_rw_debug (Richard)
- Introduce CONFIG_HAX_IS_POSSIBLE (Richard)
- Introduce AccelOpsClass::cpu_thread_is_idle (Richard)
- Introduce AccelOpsClass::cpus_are_resettable (Richard)
- Add qemu_init_arch_modules (new)

Philippe Mathieu-Daudé (21):
  accel: Restrict sysemu stubs to system emulation
  accel/meson: Only build hw virtualization with system emulation
  exec: Declare vaddr as a generic target-agnostic type
  exec: Make cpu_memory_rw_debug() target agnostic
  sysemu/memory_mapping: Become target-agnostic
  sysemu/kvm: Make kvm_on_sigbus() / kvm_on_sigbus_vcpu() target
    agnostic
  accel/kvm: Simplify user-mode #ifdef'ry
  accel/hax: Introduce CONFIG_HAX_IS_POSSIBLE
  softmmu/cpus: Code movement
  accel: Introduce AccelOpsClass::cpu_thread_is_idle()
  accel: Introduce AccelOpsClass::cpus_are_resettable()
  softmmu/globals: Remove unused 'hw/i386/*' headers
  softmmu/runstate: Clean headers
  softmmu/physmem: Remove unnecessary include
  softmmu/cpu-timers: Remove unused 'exec/exec-all.h' header
  misc: Remove unnecessary "sysemu/cpu-timers.h" include
  misc: Add missing "sysemu/cpu-timers.h" include
  exec/gdbstub: Make gdb_exit() / gdb_set_stop_cpu() target agnostic
  exec/cpu: Make address_space_init/reloading_memory_map target agnostic
  softmmu: Add qemu_init_arch_modules()
  softmmu: Build target-agnostic objects once

 accel/kvm/kvm-accel-ops.c         | 12 ++++++++++
 accel/meson.build                 | 12 ++++++----
 accel/qtest/qtest.c               |  1 -
 accel/stubs/hax-stub.c            |  2 ++
 accel/stubs/kvm-stub.c            |  5 ----
 accel/stubs/meson.build           | 11 +++++----
 accel/tcg/tcg-accel-ops-icount.c  |  1 +
 accel/tcg/tcg-accel-ops-mttcg.c   |  1 +
 accel/tcg/tcg-accel-ops-rr.c      |  1 +
 accel/tcg/tcg-accel-ops.c         |  1 +
 cpu.c                             |  6 ++---
 include/exec/cpu-all.h            |  4 ----
 include/exec/cpu-common.h         | 39 +++++++++++++++++++++++++++++++
 include/exec/exec-all.h           | 26 ---------------------
 include/exec/gdbstub.h            | 23 +++++++++---------
 include/hw/core/cpu.h             | 13 +----------
 include/sysemu/accel-ops.h        |  3 +++
 include/sysemu/arch_init.h        |  2 ++
 include/sysemu/hax.h              | 18 +++++++++-----
 include/sysemu/hw_accel.h         |  5 ----
 include/sysemu/kvm.h              |  6 ++---
 include/sysemu/memory_mapping.h   |  5 ++--
 softmmu/arch_init.c               |  9 +++++++
 softmmu/cpu-timers.c              |  1 -
 softmmu/cpus.c                    | 23 +++++++++++-------
 softmmu/globals.c                 |  2 --
 softmmu/memory_mapping.c          |  1 +
 softmmu/meson.build               | 24 +++++++++----------
 softmmu/physmem.c                 |  7 +++---
 softmmu/runstate.c                |  2 +-
 softmmu/vl.c                      |  5 +---
 target/alpha/translate.c          |  1 -
 target/i386/hax/hax-all.c         |  7 +-----
 target/i386/whpx/whpx-accel-ops.c |  6 +++++
 target/riscv/csr.c                |  1 +
 tests/unit/ptimer-test-stubs.c    |  1 -
 36 files changed, 158 insertions(+), 129 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 39+ messages in thread

end of thread, other threads:[~2022-02-05 23:38 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-03 19:17 [PATCH v2 00/21] softmmu: Make various objects target agnostic Philippe Mathieu-Daudé via
2022-02-03 19:17 ` [PATCH v2 01/21] accel: Restrict sysemu stubs to system emulation Philippe Mathieu-Daudé via
2022-02-04  8:04   ` Thomas Huth
2022-02-05 23:04   ` Richard Henderson
2022-02-03 19:17 ` [PATCH v2 02/21] accel/meson: Only build hw virtualization with " Philippe Mathieu-Daudé via
2022-02-04  7:37   ` Thomas Huth
2022-02-04  7:51     ` Philippe Mathieu-Daudé via
2022-02-04  8:00       ` Thomas Huth
2022-02-03 19:17 ` [PATCH v2 03/21] exec: Declare vaddr as a generic target-agnostic type Philippe Mathieu-Daudé via
2022-02-05 23:12   ` Richard Henderson
2022-02-03 19:17 ` [PATCH v2 04/21] exec: Make cpu_memory_rw_debug() target agnostic Philippe Mathieu-Daudé via
2022-02-05 23:13   ` Richard Henderson
2022-02-03 19:17 ` [PATCH v2 05/21] sysemu/memory_mapping: Become target-agnostic Philippe Mathieu-Daudé via
2022-02-03 19:17 ` [PATCH v2 06/21] sysemu/kvm: Make kvm_on_sigbus() / kvm_on_sigbus_vcpu() target agnostic Philippe Mathieu-Daudé via
2022-02-03 19:18 ` [PATCH v2 07/21] accel/kvm: Simplify user-mode #ifdef'ry Philippe Mathieu-Daudé via
2022-02-03 19:18 ` [PATCH v2 08/21] accel/hax: Introduce CONFIG_HAX_IS_POSSIBLE Philippe Mathieu-Daudé via
2022-02-05 23:15   ` Richard Henderson
2022-02-03 19:18 ` [PATCH v2 09/21] softmmu/cpus: Code movement Philippe Mathieu-Daudé via
2022-02-05 23:16   ` Richard Henderson
2022-02-03 19:18 ` [PATCH v2 10/21] accel: Introduce AccelOpsClass::cpu_thread_is_idle() Philippe Mathieu-Daudé via
2022-02-05 23:22   ` Richard Henderson
2022-02-03 19:18 ` [PATCH v2 11/21] accel: Introduce AccelOpsClass::cpus_are_resettable() Philippe Mathieu-Daudé via
2022-02-05 23:25   ` Richard Henderson
2022-02-03 19:18 ` [PATCH v2 12/21] softmmu/globals: Remove unused 'hw/i386/*' headers Philippe Mathieu-Daudé via
2022-02-03 19:18 ` [PATCH v2 13/21] softmmu/runstate: Clean headers Philippe Mathieu-Daudé via
2022-02-03 19:18 ` [PATCH v2 14/21] softmmu/physmem: Remove unnecessary include Philippe Mathieu-Daudé via
2022-02-05 23:26   ` Richard Henderson
2022-02-03 19:18 ` [PATCH v2 15/21] softmmu/cpu-timers: Remove unused 'exec/exec-all.h' header Philippe Mathieu-Daudé via
2022-02-03 19:18 ` [PATCH v2 16/21] misc: Remove unnecessary "sysemu/cpu-timers.h" include Philippe Mathieu-Daudé via
2022-02-05 23:29   ` Richard Henderson
2022-02-03 19:18 ` [PATCH v2 17/21] misc: Add missing " Philippe Mathieu-Daudé via
2022-02-05 23:30   ` Richard Henderson
2022-02-03 19:18 ` [PATCH v2 18/21] exec/gdbstub: Make gdb_exit() / gdb_set_stop_cpu() target agnostic Philippe Mathieu-Daudé via
2022-02-03 19:18 ` [PATCH v2 19/21] exec/cpu: Make address_space_init/reloading_memory_map " Philippe Mathieu-Daudé via
2022-02-05 23:31   ` Richard Henderson
2022-02-03 19:18 ` [PATCH v2 20/21] softmmu: Add qemu_init_arch_modules() Philippe Mathieu-Daudé via
2022-02-05 23:32   ` Richard Henderson
2022-02-03 19:18 ` [PATCH v2 21/21] softmmu: Build target-agnostic objects once Philippe Mathieu-Daudé via
2022-02-04 12:21 ` [PATCH v2 00/21] softmmu: Make various objects target agnostic Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).