Re: [RFC v2 1/6] cpus: extract out TCG-specific code to accel/tcg

2020-07-08 Thread Claudio Fontana
On 7/7/20 6:58 PM, Paolo Bonzini wrote: > On 07/07/20 15:58, Claudio Fontana wrote: >> + >> +CpusAccel tcg_cpus = { >> +.create_vcpu_thread = tcg_start_vcpu_thread, >> +.kick_vcpu_thread = tcg_kick_vcpu_thread, >> + >> +.synchronize_post_reset = tcg_cpu_synchronize_noop, >> +.synchr

Re: [RFC v2 1/6] cpus: extract out TCG-specific code to accel/tcg

2020-07-07 Thread Paolo Bonzini
On 07/07/20 15:58, Claudio Fontana wrote: > + > +CpusAccel tcg_cpus = { > +.create_vcpu_thread = tcg_start_vcpu_thread, > +.kick_vcpu_thread = tcg_kick_vcpu_thread, > + > +.synchronize_post_reset = tcg_cpu_synchronize_noop, > +.synchronize_post_init = tcg_cpu_synchronize_noop, > +

[RFC v2 1/6] cpus: extract out TCG-specific code to accel/tcg

2020-07-07 Thread Claudio Fontana
TCG is the first accelerator to register a "CpusAccel" interface on initialization, providing functions for starting a vcpu, kicking a vcpu, and sychronizing state. Signed-off-by: Claudio Fontana --- accel/tcg/Makefile.objs | 1 + accel/tcg/tcg-all.c | 12 +- accel/tcg/tcg-cpu