Skip to content

RFC accel: Preparatory cleanups for split-accel

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest19 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19hw/arm/virt: Only require TCG || QTest to use virtualization extensionhw/arm/virt.c+1 -15 replies
2/19system/cpus: Only kick running vCPUssystem/cpus.c+5 -03 replies
3/19accel: Keep reference to AccelOpsClass in AccelClassaccel/accel-system.c accel/tcg/tcg-accel-ops.c include/qemu/accel.h +1 more+9 -32 replies
4/19accel: Propagate AccelState to AccelClass::init_machine()accel/accel-system.c accel/hvf/hvf-accel-ops.c accel/kvm/kvm-all.c +7 more+10 -102 replies
5/19accel/kvm: Prefer local AccelState over global MachineState::accelaccel/kvm/kvm-all.c+1 -31 reply
6/19accel/hvf: Fix TYPE_HVF_ACCEL instance sizeaccel/hvf/hvf-accel-ops.c include/system/hvf_int.h+2 -01 reply
7/19accel/hvf: Re-use QOM allocated stateaccel/hvf/hvf-accel-ops.c+1 -31 reply
8/19accel/tcg: Prefer local AccelState over global current_accel()accel/tcg/tcg-all.c+1 -11 reply
9/19accel: Factor accel_cpu_realize() outaccel/accel-common.c accel/accel-internal.h include/qemu/accel.h+16 -31 reply
10/19accel/dummy: Factor dummy_thread_precreate() outaccel/dummy-cpus.c include/system/cpus.h+10 -30 replies
11/19accel/dummy: Factor tcg_vcpu_thread_precreate() outaccel/tcg/tcg-accel-ops-mttcg.c accel/tcg/tcg-accel-ops-rr.c accel/tcg/tcg-accel-ops.c +1 more+10 -40 replies
12/19accel: Factor accel_create_vcpu_thread() outaccel/accel-common.c include/qemu/accel.h system/cpus.c+23 -30 replies
13/19accel: Introduce AccelOpsClass::cpu_thread_routine handleraccel/accel-common.c include/system/accel-ops.h+17 -11 reply
14/19accel/dummy: Convert to AccelOpsClass::cpu_thread_routineaccel/dummy-cpus.c accel/qtest/qtest.c accel/xen/xen-all.c +1 more+6 -180 replies
15/19accel/tcg: Convert to AccelOpsClass::cpu_thread_routineaccel/tcg/tcg-accel-ops-mttcg.c accel/tcg/tcg-accel-ops-mttcg.h accel/tcg/tcg-accel-ops.c+4 -180 replies
16/19accel/hvf: Convert to AccelOpsClass::cpu_thread_routineaccel/hvf/hvf-accel-ops.c+1 -170 replies
17/19accel/kvm: Convert to AccelOpsClass::cpu_thread_routineaccel/kvm/kvm-accel-ops.c+1 -110 replies
18/19accel/nvmm: Convert to AccelOpsClass::cpu_thread_routinetarget/i386/nvmm/nvmm-accel-ops.c+1 -110 replies
19/19accel/whpx: Convert to AccelOpsClass::cpu_thread_routinetarget/i386/whpx/whpx-accel-ops.c+1 -110 replies

Reviews trailers per patch

7 of 19 patches have a Reviewed-by or Acked-by.

PatchRichard HendersonAlex Bennée
1/19R-b R-b
2/19
3/19R-b R-b
4/19R-b R-b
5/19R-b
6/19R-b
7/19R-b
8/19R-b
9/19
10/19
11/19
12/19
13/19
14/19
15/19
16/19
17/19
18/19
19/19

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 00/19] accel: Preparatory cleanups for split-accel

Few changes needed before being able to add the split acceleration. Mostly adapting few prototypes so callees have all necessary information.

Philippe Mathieu-Daudé (19):
hw/arm/virt: Only require TCG || QTest to use virtualization extension system/cpus: Only kick running vCPUs
accel: Keep reference to AccelOpsClass in AccelClass
accel: Propagate AccelState to AccelClass::init_machine() accel/kvm: Prefer local AccelState over global MachineState::accel accel/hvf: Fix TYPE_HVF_ACCEL instance size
accel/hvf: Re-use QOM allocated state
accel/tcg: Prefer local AccelState over global current_accel()
accel: Factor accel_cpu_realize() out
accel/dummy: Factor dummy_thread_precreate() out accel/dummy: Factor tcg_vcpu_thread_precreate() out
accel: Factor accel_create_vcpu_thread() out
accel: Introduce AccelOpsClass::cpu_thread_routine handler accel/dummy: Convert to AccelOpsClass::cpu_thread_routine accel/tcg: Convert to AccelOpsClass::cpu_thread_routine accel/hvf: Convert to AccelOpsClass::cpu_thread_routine accel/kvm: Convert to AccelOpsClass::cpu_thread_routine accel/nvmm: Convert to AccelOpsClass::cpu_thread_routine accel/whpx: Convert to AccelOpsClass::cpu_thread_routine

 accel/accel-internal.h            |  2 ++
 accel/tcg/tcg-accel-ops-mttcg.h   |  3 +-
 accel/tcg/tcg-accel-ops.h         |  1 +
 include/qemu/accel.h              |  8 ++++-
 include/system/accel-ops.h        |  5 +++-
 include/system/cpus.h             |  5 ++--
 include/system/hvf_int.h          |  1 +
 accel/accel-common.c              | 49 +++++++++++++++++++++++++++++--
 accel/accel-system.c              |  5 ++--
 accel/dummy-cpus.c                | 10 ++-----
 accel/hvf/hvf-accel-ops.c         | 25 +++-------------
 accel/kvm/kvm-accel-ops.c         | 12 +-------
 accel/kvm/kvm-all.c               |  6 ++--
 accel/qtest/qtest.c               |  5 ++--
 accel/tcg/tcg-accel-ops-mttcg.c   | 17 +----------
 accel/tcg/tcg-accel-ops-rr.c      |  3 +-
 accel/tcg/tcg-accel-ops.c         | 14 +++++++--
 accel/tcg/tcg-all.c               |  4 +--
 accel/xen/xen-all.c               |  3 +-
 bsd-user/main.c                   |  2 +-
 hw/arm/virt.c                     |  2 +-
 linux-user/main.c                 |  2 +-
 system/cpus.c                     |  9 ++++--
 target/i386/nvmm/nvmm-accel-ops.c | 12 +-------
 target/i386/nvmm/nvmm-all.c       |  2 +-
 target/i386/whpx/whpx-accel-ops.c | 12 +-------
 target/i386/whpx/whpx-all.c       |  2 +-
 27 files changed, 110 insertions(+), 111 deletions(-)
Signature · 1 line
2.49.0