RFC accel: Introduce AccelvCPUState opaque structure
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest19 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/19 | target/i386/hvf: Use boolean value for vcpu_dirtytarget/ | +1 | 0 replies | |
| 2/19 | target/s390x/kvm: Simplify debug codetarget/ | +1 | 2 replies | |
| 3/19 | target/s390x/kvm: Reduce deref by declaring 'struct kvm_run' on stacktarget/ | +65 | 0 replies | |
| 4/19 | cpu: Croup accelerator-specific fields altogetherinclude/ | +6 | 1 reply | |
| 5/19 | cpu: Introduce AccelvCPUState opaque structureinclude/ | +5 | 0 replies | |
| 6/19 | accel/whpx: Add typedef for 'struct whpx_vcpu'target/ | +15 | 0 replies | |
| 7/19 | accel/whpx: Rename struct whpx_vcpu -> AccelvCPUStatetarget/ | +2 | 0 replies | |
| 8/19 | accel/whpx: Use 'accel_vcpu' generic pointertarget/ | +3 | 0 replies | |
| 9/19 | accel/hax: Add typedef for 'struct hax_vcpu_state'target/ target/ target/ +1 more | +18 | 0 replies | |
| 10/19 | accel/hax: Use 'accel_vcpu' generic pointerinclude/ target/ target/ | +9 | 0 replies | |
| 11/19 | accel/kvm: Introduce kvm_vcpu_state() helperaccel/ include/ target/ | +9 | 0 replies | |
| 12/19 | accel/kvm: Use kvm_vcpu_state() when possibleaccel/ target/ target/ +2 more | +37 | 0 replies | |
| 13/19 | accel/kvm: Declare and allocate AccelvCPUState structaccel/ include/ target/ | +9 | 0 replies | |
| 14/19 | accel/kvm: Move the 'kvm_fd' field to AccelvCPUStateaccel/ include/ include/ | +8 | 0 replies | |
| 15/19 | accel/kvm: Move the 'kvm_state' field to AccelvCPUStateaccel/ include/ include/ | +3 | 0 replies | |
| 16/19 | accel/kvm: Move the 'kvm_run' field to AccelvCPUStateaccel/ hw/ include/ +3 more | +22 | 0 replies | |
| 17/19 | accel/hvf: Reduce deref by declaring 'hv_vcpuid_t hvf_fd' on stacktarget/ target/ target/ | +166 | 0 replies | |
| 18/19 | accel/hvf: Declare and allocate AccelvCPUState structtarget/ target/ | +6 | 0 replies | |
| 19/19 | accel/hvf: Move the 'hvf_fd' field to AccelvCPUStateinclude/ target/ target/ +7 more | +110 | 0 replies |
Reviews trailers per patch
1 of 19 patches has a Reviewed-by or Acked-by.
| Patch | Thomas Huth |
|---|---|
| 1/19 | |
| 2/19 | R-b |
| 3/19 | |
| 4/19 | |
| 5/19 | |
| 6/19 | |
| 7/19 | |
| 8/19 | |
| 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.
Cover letter [RFC PATCH 00/19] accel: Introduce AccelvCPUState opaque structure
Hi,
This series introduces the 'AccelvCPUState' which is forward declared opaque in "cpu.h", then each accelerator define it.
The opaque CPUState::accel_vcpu pointer is shared by all accelerators (not a problem because there can be at most one accelerator per vCPU).
Series is organized as:
- preliminary trivial cleanups
- introduce AccelvCPUState
- move WHPX fields (build-tested)
- move HAX fields (not tested)
- move KVM fields (build-tested)
- move HVF fields (not tested)
For now vcpu_dirty is still shared in CPUState.
Sending as RFC to see if it is worthwhile.
Regards,
Phil.
Philippe Mathieu-Daudé (19):
target/i386/hvf: Use boolean value for vcpu_dirty target/s390x/kvm: Simplify debug code
target/s390x/kvm: Reduce deref by declaring 'struct kvm_run' on stack
cpu: Croup accelerator-specific fields altogether
cpu: Introduce AccelvCPUState opaque structure
accel/whpx: Add typedef for 'struct whpx_vcpu'
accel/whpx: Rename struct whpx_vcpu -> AccelvCPUState accel/whpx: Use 'accel_vcpu' generic pointer
accel/hax: Add typedef for 'struct hax_vcpu_state' accel/hax: Use 'accel_vcpu' generic pointer
accel/kvm: Introduce kvm_vcpu_state() helper
accel/kvm: Use kvm_vcpu_state() when possible
accel/kvm: Declare and allocate AccelvCPUState struct accel/kvm: Move the 'kvm_fd' field to AccelvCPUState accel/kvm: Move the 'kvm_state' field to AccelvCPUState accel/kvm: Move the 'kvm_run' field to AccelvCPUState accel/hvf: Reduce deref by declaring 'hv_vcpuid_t hvf_fd' on stack accel/hvf: Declare and allocate AccelvCPUState struct accel/hvf: Move the 'hvf_fd' field to AccelvCPUState
include/hw/core/cpu.h | 17 +-- include/sysemu/kvm.h | 2 + include/sysemu/kvm_int.h | 9 ++ target/i386/hax/hax-i386.h | 10 +- target/i386/hvf/hvf-i386.h | 4 + target/i386/hvf/vmx.h | 28 +++-- accel/kvm/kvm-all.c | 44 ++++--- hw/s390x/pv.c | 3 +- target/arm/kvm.c | 2 +- target/arm/kvm64.c | 12 +- target/i386/cpu.c | 4 +- target/i386/hax/hax-all.c | 22 ++-- target/i386/hax/hax-posix.c | 4 +- target/i386/hax/hax-windows.c | 4 +- target/i386/hvf/hvf.c | 118 +++++++++--------- target/i386/hvf/x86.c | 28 ++--- target/i386/hvf/x86_descr.c | 32 +++-- target/i386/hvf/x86_emu.c | 62 +++++----- target/i386/hvf/x86_mmu.c | 4 +- target/i386/hvf/x86_task.c | 14 ++- target/i386/hvf/x86hvf.c | 227 +++++++++++++++++----------------- target/i386/kvm/kvm.c | 36 +++--- target/i386/whpx/whpx-all.c | 34 ++--- target/ppc/kvm.c | 16 +-- target/s390x/kvm.c | 148 +++++++++++----------- 25 files changed, 466 insertions(+), 418 deletions(-)
Signature · 1 line
2.26.2