All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 00/30] accel: Move has_work() from SysemuCPUOps to AccelOpsClass
@ 2021-09-02 16:15 ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 130+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-09-02 16:15 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Cornelia Huck, kvm, David Hildenbrand, Bin Meng,
	Mark Cave-Ayland, Aleksandar Rikalo, Laurent Vivier,
	Max Filippov, Taylor Simpson, haxm-team, Colin Xu,
	Edgar E. Iglesias, Stafford Horne, Marek Vasut,
	Stefano Stabellini, Yoshinori Sato, Paul Durrant,
	Kamil Rytarowski, Reinoud Zandijk, Claudio Fontana,
	Anthony Perard, xen-devel, Artyom Tarasenko, Laurent Vivier,
	Thomas Huth, Eduardo Habkost, Richard Henderson, Greg Kurz,
	Cameron Esfahani, qemu-s390x, qemu-arm, Michael Rolnik,
	Sunil Muthuswamy, Palmer Dabbelt, David Gibson, qemu-riscv,
	Bastian Koppelmann, Chris Wulff, Roman Bolshakov, qemu-ppc,
	Wenchao Wang, Alistair Francis, Paolo Bonzini, Aurelien Jarno,
	Philippe Mathieu-Daudé

Hi,

CPU has_work() is a per-accelerator handler. This series
- explicit the KVM / WHPX implementations
- moves TCG implementations in AccelOpsClass
- explicit missing implementations (returning 'false').

Since v2:
- Full rewrite, no more RFC.

Supersedes: <20210304222323.1954755-1-f4bug@amsat.org>
"cpu: Move CPUClass::has_work() to TCGCPUOps"

Philippe Mathieu-Daudé (30):
  accel/tcg: Restrict cpu_handle_halt() to sysemu
  hw/core: Restrict cpu_has_work() to sysemu
  hw/core: Un-inline cpu_has_work()
  sysemu: Introduce AccelOpsClass::has_work()
  accel/kvm: Implement AccelOpsClass::has_work()
  accel/whpx: Implement AccelOpsClass::has_work()
  accel/tcg: Implement AccelOpsClass::has_work() as stub
  target/alpha: Restrict has_work() handler to sysemu and TCG
  target/arm: Restrict has_work() handler to sysemu and TCG
  target/avr: Restrict has_work() handler to sysemu and TCG
  target/cris: Restrict has_work() handler to sysemu and TCG
  target/hexagon: Remove unused has_work() handler
  target/hppa: Restrict has_work() handler to sysemu and TCG
  target/i386: Restrict has_work() handler to sysemu and TCG
  target/m68k: Restrict has_work() handler to sysemu and TCG
  target/microblaze: Restrict has_work() handler to sysemu and TCG
  target/mips: Restrict has_work() handler to sysemu and TCG
  target/nios2: Restrict has_work() handler to sysemu and TCG
  target/openrisc: Restrict has_work() handler to sysemu and TCG
  target/ppc: Restrict has_work() handler to sysemu and TCG
  target/ppc: Introduce PowerPCCPUClass::has_work()
  target/ppc: Simplify has_work() handlers
  target/riscv: Restrict has_work() handler to sysemu and TCG
  target/rx: Restrict has_work() handler to sysemu and TCG
  target/s390x: Restrict has_work() handler to sysemu and TCG
  target/sh4: Restrict has_work() handler to sysemu and TCG
  target/sparc: Restrict has_work() handler to sysemu and TCG
  target/tricore: Restrict has_work() handler to sysemu and TCG
  target/xtensa: Restrict has_work() handler to sysemu and TCG
  accel: Add missing AccelOpsClass::has_work() and drop SysemuCPUOps one

 include/hw/core/cpu.h             |  28 +--
 include/hw/core/tcg-cpu-ops.h     |   4 +
 include/sysemu/accel-ops.h        |   5 +
 target/ppc/cpu-qom.h              |   3 +
 accel/hvf/hvf-accel-ops.c         |   6 +
 accel/kvm/kvm-accel-ops.c         |   6 +
 accel/qtest/qtest.c               |   6 +
 accel/tcg/cpu-exec.c              |   8 +-
 accel/tcg/tcg-accel-ops.c         |  12 ++
 accel/xen/xen-all.c               |   6 +
 hw/core/cpu-common.c              |   6 -
 softmmu/cpus.c                    |  10 +-
 target/alpha/cpu.c                |   4 +-
 target/arm/cpu.c                  |   7 +-
 target/avr/cpu.c                  |   4 +-
 target/cris/cpu.c                 |   4 +-
 target/hexagon/cpu.c              |   6 -
 target/hppa/cpu.c                 |   4 +-
 target/i386/cpu.c                 |   6 -
 target/i386/hax/hax-accel-ops.c   |   6 +
 target/i386/nvmm/nvmm-accel-ops.c |   6 +
 target/i386/tcg/tcg-cpu.c         |   8 +-
 target/i386/whpx/whpx-accel-ops.c |   6 +
 target/m68k/cpu.c                 |   4 +-
 target/microblaze/cpu.c           |  10 +-
 target/mips/cpu.c                 |   4 +-
 target/nios2/cpu.c                |   4 +-
 target/openrisc/cpu.c             |   4 +-
 target/ppc/cpu_init.c             | 324 +++++++++++++++---------------
 target/riscv/cpu.c                |   8 +-
 target/rx/cpu.c                   |   4 +-
 target/s390x/cpu.c                |   4 +-
 target/sh4/cpu.c                  |   7 +-
 target/sparc/cpu.c                |   4 +-
 target/tricore/cpu.c              |   6 +-
 target/xtensa/cpu.c               |  16 +-
 36 files changed, 321 insertions(+), 239 deletions(-)

-- 
2.31.1



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

end of thread, other threads:[~2021-09-12 12:37 UTC | newest]

Thread overview: 130+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02 16:15 [PATCH v3 00/30] accel: Move has_work() from SysemuCPUOps to AccelOpsClass Philippe Mathieu-Daudé
2021-09-02 16:15 ` Philippe Mathieu-Daudé
2021-09-02 16:15 ` [PATCH v3 01/30] accel/tcg: Restrict cpu_handle_halt() to sysemu Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 19:31   ` Richard Henderson
2021-09-03 19:31     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 02/30] hw/core: Restrict cpu_has_work() " Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:11   ` Richard Henderson
2021-09-03 20:11     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 03/30] hw/core: Un-inline cpu_has_work() Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:11   ` Richard Henderson
2021-09-03 20:11     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 04/30] sysemu: Introduce AccelOpsClass::has_work() Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:14   ` Richard Henderson
2021-09-03 20:14     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 05/30] accel/kvm: Implement AccelOpsClass::has_work() Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:15   ` Richard Henderson
2021-09-03 20:15     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 06/30] accel/whpx: " Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:16   ` Richard Henderson
2021-09-03 20:16     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 07/30] accel/tcg: Implement AccelOpsClass::has_work() as stub Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:17   ` Richard Henderson
2021-09-03 20:17     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 08/30] target/alpha: Restrict has_work() handler to sysemu and TCG Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:18   ` Richard Henderson
2021-09-03 20:18     ` Richard Henderson
2021-09-03 20:34     ` Philippe Mathieu-Daudé
2021-09-03 20:34       ` Philippe Mathieu-Daudé
2021-09-03 20:38       ` Richard Henderson
2021-09-03 20:38         ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 09/30] target/arm: " Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:19   ` Richard Henderson
2021-09-03 20:19     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 10/30] target/avr: " Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:20   ` Richard Henderson
2021-09-03 20:20     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 11/30] target/cris: " Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:21   ` Richard Henderson
2021-09-03 20:21     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 12/30] target/hexagon: Remove unused has_work() handler Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:21   ` Richard Henderson
2021-09-03 20:21     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 13/30] target/hppa: Restrict has_work() handler to sysemu and TCG Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:22   ` Richard Henderson
2021-09-03 20:22     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 14/30] target/i386: " Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:23   ` Richard Henderson
2021-09-03 20:23     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 15/30] target/m68k: " Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:24   ` Richard Henderson
2021-09-03 20:24     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 16/30] target/microblaze: " Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:25   ` Richard Henderson
2021-09-03 20:25     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 17/30] target/mips: " Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:26   ` Richard Henderson
2021-09-03 20:26     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 18/30] target/nios2: " Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:31   ` Richard Henderson
2021-09-03 20:31     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 19/30] target/openrisc: " Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:31   ` Richard Henderson
2021-09-03 20:31     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 20/30] target/ppc: " Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03  0:49   ` David Gibson
2021-09-03  0:49     ` David Gibson
2021-09-03 20:43   ` Richard Henderson
2021-09-03 20:43     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 21/30] target/ppc: Introduce PowerPCCPUClass::has_work() Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03  0:50   ` David Gibson
2021-09-03  0:50     ` David Gibson
2021-09-03 20:38     ` Philippe Mathieu-Daudé
2021-09-03 20:38       ` Philippe Mathieu-Daudé
2021-09-03 20:42     ` Richard Henderson
2021-09-03 20:42       ` Richard Henderson
2021-09-03 21:11       ` Philippe Mathieu-Daudé
2021-09-03 21:11         ` Philippe Mathieu-Daudé
2021-09-11 22:31         ` Philippe Mathieu-Daudé
2021-09-11 22:31           ` Philippe Mathieu-Daudé
2021-09-12 12:31           ` Richard Henderson
2021-09-12 12:31             ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 22/30] target/ppc: Simplify has_work() handlers Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:43   ` Richard Henderson
2021-09-03 20:43     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 23/30] target/riscv: Restrict has_work() handler to sysemu and TCG Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:43   ` Richard Henderson
2021-09-03 20:43     ` Richard Henderson
2021-09-02 16:15 ` [PATCH v3 24/30] target/rx: " Philippe Mathieu-Daudé
2021-09-02 16:15   ` Philippe Mathieu-Daudé
2021-09-03 20:44   ` Richard Henderson
2021-09-03 20:44     ` Richard Henderson
2021-09-03 17:55 ` [PATCH v3 25/30] target/s390x: " Philippe Mathieu-Daudé
2021-09-03 20:44   ` Richard Henderson
2021-09-03 18:13 ` [PATCH v3 26/30] target/sh4: " Philippe Mathieu-Daudé
2021-09-03 20:45   ` Richard Henderson
2021-09-03 18:14 ` [PATCH v3 27/30] target/sparc: " Philippe Mathieu-Daudé
2021-09-03 20:46   ` Richard Henderson
2021-09-03 18:14 ` [PATCH v3 28/30] target/tricore: " Philippe Mathieu-Daudé
2021-09-03 20:46   ` Richard Henderson
2021-09-03 18:15 ` [PATCH v3 29/30] target/xtensa: " Philippe Mathieu-Daudé
2021-09-03 20:47   ` Richard Henderson
2021-09-03 18:19 ` [PATCH v3 30/30] accel: Add missing AccelOpsClass::has_work() and drop SysemuCPUOps one Philippe Mathieu-Daudé
2021-09-03 18:19   ` Philippe Mathieu-Daudé
2021-09-03 20:48   ` Richard Henderson
2021-09-03 20:48     ` Richard Henderson
2021-09-06  6:48   ` Paul Durrant
2021-09-06  6:48     ` Paul Durrant

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.