Skip to content

cpus: Constify some CPUState arguments

Philippe Mathieu-Daudé kvm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7qemu/thread: Constify qemu_thread_get_affinity() 'thread' argumentinclude/qemu/thread.h util/qemu-thread-posix.c util/qemu-thread-win32.c+6 -60 replies
2/7qemu/thread: Constify qemu_thread_is_self() argumentinclude/qemu/thread.h util/qemu-thread-posix.c util/qemu-thread-win32.c+3 -30 replies
3/7cpus: Constify qemu_cpu_is_self() argumentbsd-user/main.c include/hw/core/cpu.h linux-user/main.c +1 more+4 -40 replies
4/7cpus: Constify cpu_get_address_space() 'cpu' argumentinclude/hw/core/cpu.h system/physmem.c+2 -20 replies
5/7cpus: Constify cpu_is_stopped() argumentinclude/hw/core/cpu.h system/cpus.c+2 -20 replies
6/7cpus: Constify cpu_work_list_empty() argumentinclude/system/cpus.h system/cpus.c+2 -20 replies
7/7accels: Constify AccelOpsClass::cpu_thread_is_idle() argumentaccel/kvm/kvm-accel-ops.c include/system/accel-ops.h target/i386/whpx/whpx-accel-ops.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] cpus: Constify some CPUState arguments

This is in preparation of making various CPUClass handlers take a const CPUState argument.

Philippe Mathieu-Daudé (7):
qemu/thread: Constify qemu_thread_get_affinity() 'thread' argument qemu/thread: Constify qemu_thread_is_self() argument
cpus: Constify qemu_cpu_is_self() argument
cpus: Constify cpu_get_address_space() 'cpu' argument
cpus: Constify cpu_is_stopped() argument
cpus: Constify cpu_work_list_empty() argument
accels: Constify AccelOpsClass::cpu_thread_is_idle() argument

 include/hw/core/cpu.h             | 6 +++---
 include/qemu/thread.h             | 6 +++---
 include/system/accel-ops.h        | 2 +-
 include/system/cpus.h             | 2 +-
 accel/kvm/kvm-accel-ops.c         | 2 +-
 bsd-user/main.c                   | 2 +-
 linux-user/main.c                 | 2 +-
 system/cpus.c                     | 6 +++---
 system/physmem.c                  | 2 +-
 target/i386/whpx/whpx-accel-ops.c | 2 +-
 util/qemu-thread-posix.c          | 6 +++---
 util/qemu-thread-win32.c          | 6 +++---
 12 files changed, 22 insertions(+), 22 deletions(-)
Signature · 1 line
2.47.1