Skip to content

Cleanups around the 'current_machine' global variable

Philippe Mathieu-Daudé kvm qemu-arm qemu-devel 1 version Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest10 patches 13 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/10hw/ppc/spapr_rtas: Use local MachineState variablehw/ppc/spapr_rtas.c+1 -10 replies
2/10hw/ppc/spapr_rtas: Access MachineState via SpaprMachineState argumenthw/ppc/spapr_rtas.c+1 -10 replies
3/10hw/ppc/spapr_rtas: Remove local variablehw/ppc/spapr_rtas.c+2 -31 reply
4/10target/arm/kvm: Use CPUState::kvm_state in kvm_arm_pmu_supported()target/arm/kvm.c+1 -30 replies
5/10target/s390x: Remove duplicated ifdef macrotarget/s390x/excp_helper.c+3 -42 replies
6/10qom/object: Display more helpful message when a parent is missingqom/object.c+5 -11 reply
7/10qdev: Abort if the root machine container is missinghw/core/qdev.c+1 -01 reply
8/10accel: Introduce the current_accel() wrapperaccel/accel.c include/sysemu/accel.h+7 -01 reply
9/10accel: Replace current_machine->accelerator by current_accel() wrapperaccel/kvm/kvm-all.c accel/tcg/tcg-all.c memory.c +4 more+9 -102 replies
10/10accel/tcg: Sanitize include pathaccel/tcg/tcg-all.c+3 -31 reply

Reviews trailers per patch

9 of 10 patches have a Reviewed-by or Acked-by.

PatchGreg KurzDavid GibsonAlistair FrancisCornelia Huck
1/10R-b A-b
2/10R-b A-b
3/10A-b
4/10R-b
5/10R-b
6/10R-b
7/10
8/10R-b R-b
9/10A-b R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/10] Cleanups around the 'current_machine' global variable

v1 was "Replace current_machine by qdev_get_machine()":
https://www.mail-archive.com/[email protected]/msg669611.html

But Markus objected, see:
https://www.mail-archive.com/[email protected]/msg670122.html
and older discussion:
https://www.mail-archive.com/[email protected]/msg611338.html

This series salvage patches from v1, and add other trivial cleanups.

Can the ARM/PPC/S390 patches could go via their own tree, and the rest via Paolo's 'misc' tree?

Supersedes: <[email protected]>

Philippe Mathieu-Daudé (10):
hw/ppc/spapr_rtas: Use local MachineState variable hw/ppc/spapr_rtas: Access MachineState via SpaprMachineState argument hw/ppc/spapr_rtas: Remove local variable
target/arm/kvm: Use CPUState::kvm_state in kvm_arm_pmu_supported() target/s390x: Remove duplicated ifdef macro
qom/object: Display more helpful message when a parent is missing
qdev: Abort if the root machine container is missing
accel: Introduce the current_accel() wrapper
accel: Replace current_machine->accelerator by current_accel() wrapper accel/tcg: Sanitize include path

 include/sysemu/accel.h     | 2 ++
 accel/accel.c              | 5 +++++
 accel/kvm/kvm-all.c        | 4 ++--
 accel/tcg/tcg-all.c        | 8 ++++----
 hw/core/qdev.c             | 1 +
 hw/ppc/spapr_rtas.c        | 9 ++++-----
 memory.c                   | 2 +-
 qom/object.c               | 6 +++++-
 target/arm/kvm.c           | 4 +---
 target/arm/kvm64.c         | 5 ++---
 target/i386/kvm.c          | 2 +-
 target/ppc/kvm.c           | 2 +-
 target/s390x/excp_helper.c | 7 +++----
 vl.c                       | 2 +-
 14 files changed, 33 insertions(+), 26 deletions(-)
Signature · 1 line
2.21.1