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 <cfont...@suse.de> > --- > 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.