Re: [PATCH v5 10/14] cpus: add handle_interrupt to the CpusAccel interface

2020-08-19 Thread Claudio Fontana
On 8/14/20 11:01 PM, Richard Henderson wrote: > On 8/12/20 11:32 AM, Claudio Fontana wrote: >> +static void generic_handle_interrupt(CPUState *cpu, int mask) >> +{ >> +cpu->interrupt_request |= mask; >> + >> +if (!qemu_cpu_is_self(cpu)) { >> +qemu_cpu_kick(cpu); >> +} >> +} >> +

Re: [PATCH v5 10/14] cpus: add handle_interrupt to the CpusAccel interface

2020-08-17 Thread Roman Bolshakov
On Fri, Aug 14, 2020 at 02:01:01PM -0700, Richard Henderson wrote: > On 8/12/20 11:32 AM, Claudio Fontana wrote: > > +static void generic_handle_interrupt(CPUState *cpu, int mask) > > +{ > > +cpu->interrupt_request |= mask; > > + > > +if (!qemu_cpu_is_self(cpu)) { > > +qemu_cpu_kick

Re: [PATCH v5 10/14] cpus: add handle_interrupt to the CpusAccel interface

2020-08-15 Thread Richard Henderson
On 8/12/20 11:32 AM, Claudio Fontana wrote: > +static void generic_handle_interrupt(CPUState *cpu, int mask) > +{ > +cpu->interrupt_request |= mask; > + > +if (!qemu_cpu_is_self(cpu)) { > +qemu_cpu_kick(cpu); > +} > +} > + > +void cpu_interrupt(CPUState *cpu, int mask) > +{ > +

[PATCH v5 10/14] cpus: add handle_interrupt to the CpusAccel interface

2020-08-12 Thread Claudio Fontana
kvm: uses the generic handler qtest: uses the generic handler whpx: changed to use the generic handler (identical implementation) hax: changed to use the generic handler (identical implementation) hvf: changed to use the generic handler (identical implementation) tcg: adapt tcg-cpus to point to the