All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH qom-cpu v3 00/14] QOM CPUState, part 10: CPU loops
@ 2013-06-26 17:35 Andreas Färber
  2013-06-26 17:35   ` [Qemu-devel] " Andreas Färber
                   ` (14 more replies)
  0 siblings, 15 replies; 23+ messages in thread
From: Andreas Färber @ 2013-06-26 17:35 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Stefano Stabellini, Markus Armbruster,
	Alexander Graf, Blue Swirl, Anthony Liguori, Scott Wood,
	Paolo Bonzini, Andreas Färber, Aurélien Jarno

Hello,

This series changes cpu_single_env, first_cpu, next_cpu and thread_env to CPUState.

v3 defers the removal of qemu_for_each_cpu() and drops CPU_INTERRUPT_* changes,
renames cpu_single_cpu to current_cpu, while enforcing consistent use of
ENV_GET_CPU() and CPUArchState macros.

Available for testing at:
git://github.com/afaerber/qemu-cpu.git qom-cpu-10.v3
https://github.com/afaerber/qemu-cpu/commits/qom-cpu-10.v3

Regards,
Andreas

v2 -> v3:
* Dropped sh_intc change and CPU_INTERRUPT_* movement / enum conversion (rth).
* Simplified alpha code by reusing a cpu variable (rth).
* Renamed cpu_single_cpu to current_cpu and prepended KVM preparation patch.
* Dropped qemu_for_each_cpu() removal (mst).
* Rebased onto Paolo's iommu series.
* Dropped cpu_next hunks in cpu_copy() no longer needed for CPUState::next_cpu.
* Applied some preparatory patches to avoid large resends.
* Appended ENV_GET_CPU() cleanups for ppc and s390x.
* Appended CPUArchState cleanup for x86 dump support.
* Prepended Coding Style cleanup for linux-user do_syscall() TARGET_NR_exit.

v1 -> v2:
* Fixed typo spotted by Li Guang.
* Dropped qemu_for_each_cpu() conversion patches.
* Applied most qemu_get_cpu() patches already.
* Fixed Xen breakage due to NULL cpu_single_env (reported by Stefano).
* Appended patch to drop qemu_for_each_cpu() (suggested by Markus).
* Appended patches to build arm_gic, arm_mptimer, openpic and sh_intc only once.
* Avoided some un-typed uses of CPUState::env_ptr.

Cc: Anthony Liguori <anthony@codemonkey.ws>
Cc: Blue Swirl <blauwirbel@gmail.com>
Cc: Aurélien Jarno <aurelien@aurel32.net>
Cc: Markus Armbruster <armbru@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com> (cpu_unassigned_access)
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> (dummy CPU thread changes)
Cc: Peter Maydell <peter.maydell@linaro.org> (hwaddr, arm devs)
Cc: Alexander Graf <agraf@suse.de> (openpic)
Cc: Scott Wood <scottwood@freescale.com> (openpic)

Andreas Färber (14):
  kvm: Free current_cpu identifier
  cpu: Replace cpu_single_env with CPUState current_cpu
  kvm: Change kvm_remove_all_breakpoints() argument to CPUState
  linux-user: Clean up do_syscall() Coding Style for TARGET_NR_exit
  cpu: Make first_cpu and next_cpu CPUState
  linux-user: Change thread_env to CPUState
  bsd-user: Change thread_env to CPUState
  intc/arm_gic: Build arm_gic only once
  intc/openpic: Build openpic only once
  timer/arm_mptimer: Build arm_mptimer only once
  target-ppc: Don't overuse ENV_GET_CPU()
  target-s390x: Don't overuse ENV_GET_CPU()
  target-s390x: Change handle_{hypercall,diag}() argument to S390CPU
  target-i386: Don't overuse CPUArchState

 bsd-user/elfload.c        |   6 +-
 bsd-user/main.c           |   6 +-
 bsd-user/qemu.h           |   2 +-
 cpu-exec.c                |  13 ++--
 cpus.c                    | 167 ++++++++++++++++++++++++----------------------
 cputlb.c                  |   4 +-
 dump.c                    |  16 ++---
 exec.c                    |  55 ++++++++-------
 gdbstub.c                 |  35 ++++++----
 hw/alpha/typhoon.c        |  16 ++---
 hw/arm/boot.c             |  10 +--
 hw/arm/exynos4_boards.c   |   4 +-
 hw/arm/highbank.c         |   2 +-
 hw/arm/pxa2xx.c           |   3 +-
 hw/arm/realview.c         |   2 +-
 hw/arm/vexpress.c         |   2 +-
 hw/arm/xilinx_zynq.c      |   2 +-
 hw/i386/kvm/clock.c       |  12 ++--
 hw/i386/kvmvapic.c        |  19 ++++--
 hw/i386/pc.c              |  28 ++++----
 hw/i386/pc_piix.c         |   3 +-
 hw/intc/Makefile.objs     |   4 +-
 hw/intc/arm_gic.c         |   4 +-
 hw/intc/armv7m_nvic.c     |  11 ++-
 hw/intc/openpic.c         |   9 +--
 hw/intc/sh_intc.c         |   5 +-
 hw/isa/lpc_ich9.c         |   2 +-
 hw/mips/mips_fulong2e.c   |   6 +-
 hw/mips/mips_jazz.c       |   6 +-
 hw/mips/mips_malta.c      |   9 +--
 hw/misc/vmport.c          |  26 +++++---
 hw/ppc/mpc8544_guts.c     |   3 +-
 hw/ppc/ppc.c              |  12 ++--
 hw/ppc/prep.c             |  12 ++--
 hw/ppc/spapr.c            |  27 ++++----
 hw/sparc/sun4m.c          |   5 +-
 hw/timer/Makefile.objs    |   2 +-
 hw/timer/arm_mptimer.c    |   9 ++-
 include/exec/cpu-all.h    |   4 --
 include/exec/cpu-defs.h   |   1 -
 include/hw/ppc/ppc.h      |   2 -
 include/hw/ppc/ppc_e500.h |   6 ++
 include/qom/cpu.h         |   8 +++
 include/sysemu/kvm.h      |  10 +--
 kvm-all.c                 |  53 ++++++++-------
 kvm-stub.c                |   6 +-
 linux-user/elfload.c      |  21 +++---
 linux-user/linuxload.c    |   3 +-
 linux-user/main.c         |  16 ++---
 linux-user/qemu.h         |   2 +-
 linux-user/signal.c       |  12 ++--
 linux-user/syscall.c      |  80 +++++++++++-----------
 memory.c                  |  10 ++-
 memory_mapping.c          |  16 ++---
 monitor.c                 |   4 +-
 target-i386/arch_dump.c   |  17 +++--
 target-i386/helper.c      |  15 +++--
 target-i386/kvm.c         |   8 ++-
 target-i386/misc_helper.c |   2 +-
 target-mips/op_helper.c   |  25 ++++---
 target-ppc/excp_helper.c  |   9 ++-
 target-ppc/kvm.c          |   2 +-
 target-ppc/mmu_helper.c   |   2 +-
 target-s390x/kvm.c        |  14 ++--
 translate-all.c           |  32 +++++----
 user-exec.c               |   9 +--
 66 files changed, 500 insertions(+), 448 deletions(-)
 create mode 100644 include/hw/ppc/ppc_e500.h

-- 
1.8.1.4

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

end of thread, other threads:[~2013-07-02  0:32 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-26 17:35 [Qemu-devel] [PATCH qom-cpu v3 00/14] QOM CPUState, part 10: CPU loops Andreas Färber
2013-06-26 17:35 ` [PATCH qom-cpu v3 01/14] kvm: Free current_cpu identifier Andreas Färber
2013-06-26 17:35   ` [Qemu-devel] " Andreas Färber
2013-06-26 17:35 ` [Qemu-devel] [PATCH qom-cpu v3 02/14] cpu: Replace cpu_single_env with CPUState current_cpu Andreas Färber
2013-06-26 17:35 ` [PATCH qom-cpu v3 03/14] kvm: Change kvm_remove_all_breakpoints() argument to CPUState Andreas Färber
2013-06-26 17:35   ` [Qemu-devel] " Andreas Färber
2013-06-26 17:35 ` [Qemu-devel] [PATCH qom-cpu v3 04/14] linux-user: Clean up do_syscall() Coding Style for TARGET_NR_exit Andreas Färber
2013-06-26 17:35 ` [PATCH qom-cpu v3 05/14] cpu: Make first_cpu and next_cpu CPUState Andreas Färber
2013-06-26 17:35   ` [Qemu-devel] " Andreas Färber
2013-07-01 17:37   ` Andreas Färber
2013-07-01 17:37     ` Andreas Färber
2013-06-26 17:35 ` [Qemu-devel] [PATCH qom-cpu v3 06/14] linux-user: Change thread_env to CPUState Andreas Färber
2013-06-26 17:35 ` [Qemu-devel] [PATCH qom-cpu v3 07/14] bsd-user: " Andreas Färber
2013-06-26 17:35 ` [Qemu-devel] [PATCH qom-cpu v3 08/14] intc/arm_gic: Build arm_gic only once Andreas Färber
2013-06-26 17:35 ` [Qemu-devel] [PATCH qom-cpu v3 09/14] intc/openpic: Build openpic " Andreas Färber
2013-06-26 17:35 ` [Qemu-devel] [PATCH qom-cpu v3 10/14] timer/arm_mptimer: Build arm_mptimer " Andreas Färber
2013-06-26 17:35 ` [Qemu-devel] [PATCH qom-cpu v3 11/14] target-ppc: Don't overuse ENV_GET_CPU() Andreas Färber
2013-06-26 17:35 ` [PATCH qom-cpu v3 12/14] target-s390x: " Andreas Färber
2013-06-26 17:35   ` [Qemu-devel] " Andreas Färber
2013-06-26 17:35 ` [PATCH qom-cpu v3 13/14] target-s390x: Change handle_{hypercall,diag}() argument to S390CPU Andreas Färber
2013-06-26 17:35   ` [Qemu-devel] [PATCH qom-cpu v3 13/14] target-s390x: Change handle_{hypercall, diag}() " Andreas Färber
2013-06-26 17:35 ` [Qemu-devel] [PATCH qom-cpu v3 14/14] target-i386: Don't overuse CPUArchState Andreas Färber
2013-07-02  0:31 ` [Qemu-devel] [PATCH qom-cpu v3 00/14] QOM CPUState, part 10: CPU loops Andreas Färber

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.