[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC v3 4/4] cpus: extract out accel-specific code to each accel
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [RFC v3 4/4] cpus: extract out accel-specific code to each accel |
Date: |
Mon, 25 May 2020 17:22:25 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
On 5/25/20 4:54 PM, Claudio Fontana wrote:
> each accelerator registers a new "CpusAccelInterface"
> on initialization, providing functions for starting a vcpu,
> kicking a vcpu, and sychronizing state.
>
> This way the code in cpus.cc is now all general softmmu code,
> nothing (or almost nothing) accelerator-specific anymore.
>
> Signed-off-by: Claudio Fontana <address@hidden>
> ---
> MAINTAINERS | 1 +
> accel/kvm/Makefile.objs | 2 +
> accel/kvm/kvm-all.c | 15 +-
> accel/kvm/kvm-cpus-interface.c | 94 ++++
> accel/kvm/kvm-cpus-interface.h | 8 +
> accel/qtest.c | 82 ++++
> accel/stubs/kvm-stub.c | 3 +-
> accel/tcg/Makefile.objs | 1 +
> accel/tcg/tcg-all.c | 12 +-
> accel/tcg/tcg-cpus-interface.c | 523 ++++++++++++++++++++
> accel/tcg/tcg-cpus-interface.h | 8 +
> hw/core/cpu.c | 1 +
> include/sysemu/cpus.h | 32 ++
> include/sysemu/hvf.h | 1 -
> include/sysemu/hw_accel.h | 57 +--
> include/sysemu/kvm.h | 2 +-
> softmmu/cpus.c | 911
> +++--------------------------------
> stubs/Makefile.objs | 1 +
> stubs/cpu-synchronize-state.c | 15 +
> target/i386/Makefile.objs | 7 +-
> target/i386/hax-all.c | 6 +-
> target/i386/hax-cpus-interface.c | 85 ++++
> target/i386/hax-cpus-interface.h | 8 +
> target/i386/hax-i386.h | 2 +
> target/i386/hax-posix.c | 12 +
> target/i386/hax-windows.c | 20 +
> target/i386/hvf/Makefile.objs | 2 +-
> target/i386/hvf/hvf-cpus-interface.c | 92 ++++
> target/i386/hvf/hvf-cpus-interface.h | 8 +
> target/i386/hvf/hvf.c | 5 +-
> target/i386/whpx-all.c | 3 +
> target/i386/whpx-cpus-interface.c | 96 ++++
> target/i386/whpx-cpus-interface.h | 8 +
> 33 files changed, 1220 insertions(+), 903 deletions(-)
> create mode 100644 accel/kvm/kvm-cpus-interface.c
> create mode 100644 accel/kvm/kvm-cpus-interface.h
> create mode 100644 accel/tcg/tcg-cpus-interface.c
> create mode 100644 accel/tcg/tcg-cpus-interface.h
> create mode 100644 stubs/cpu-synchronize-state.c
> create mode 100644 target/i386/hax-cpus-interface.c
> create mode 100644 target/i386/hax-cpus-interface.h
> create mode 100644 target/i386/hvf/hvf-cpus-interface.c
> create mode 100644 target/i386/hvf/hvf-cpus-interface.h
> create mode 100644 target/i386/whpx-cpus-interface.c
> create mode 100644 target/i386/whpx-cpus-interface.h
Patch looks good, but remember to add proper license headers to all new
files when removing the RFC tag.
- Re: [RFC v3 1/4] softmmu: move softmmu only files from root, (continued)
[RFC v3 2/4] cpu-throttle: new module, extracted from cpus.c, Claudio Fontana, 2020/05/25
[RFC v3 3/4] cpu-timers, icount: new modules, Claudio Fontana, 2020/05/25
[RFC v3 4/4] cpus: extract out accel-specific code to each accel, Claudio Fontana, 2020/05/25
Re: [RFC v3 0/4] QEMU cpus.c refactoring, no-reply, 2020/05/25