Re: [RFC v2 3/3] cpus: extract out accel-specific code to each accel

2020-05-24 Thread Claudio Fontana
On 5/22/20 7:10 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)

[RFC v2 3/3] cpus: extract out accel-specific code to each accel

2020-05-22 Thread Claudio Fontana
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