[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC v9 18/32] cpu: Move synchronize_from_tb() to tcg_ops
From: |
Eduardo Habkost |
Subject: |
Re: [RFC v9 18/32] cpu: Move synchronize_from_tb() to tcg_ops |
Date: |
Wed, 9 Dec 2020 09:46:03 -0500 |
On Wed, Dec 09, 2020 at 10:50:29AM +0000, Alex Bennée wrote:
>
> Claudio Fontana <cfontana@suse.de> writes:
>
> > From: Eduardo Habkost <ehabkost@redhat.com>
> >
> > Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> > [claudio: wrapped in CONFIG_TCG]
> > Signed-off-by: Claudio Fontana <cfontana@suse.de>
> > Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> > ---
[...]
> > @@ -20,6 +17,17 @@ typedef struct TcgCpuOperations {
> > * Called when the first CPU is realized.
> > */
> > void (*initialize)(void);
> > + /**
> > + * @synchronize_from_tb: Synchronize state from a TCG #TranslationBlock
> > + *
> > + * This is called when we abandon execution of a TB before
> > + * starting it, and must set all parts of the CPU state which
> > + * the previous TB in the chain may not have updated. This
> > + * will need to do more. If this hook is not implemented then
> > + * the default is to call
> > + * @set_pc(tb->pc).
> > + */
>
> We could clean-up the comment here to better fit the javadoc style API
> documentation format, i.e.:
>
> /**
> * synchronize_from_tb: Synchronize current TCG execution state
> * @cpu: current cpu
> * @tb: about to be executed #TranslationBlock
> *
> * This is called when we abandon execution of a TB before
> * starting it, and must set all parts of the CPU state which
> * the previous TB in the chain may not have updated. This
> * will need to do more. If this hook is not implemented then
> * the default is to call @set_pc(tb->pc).
> */
Would this work with kernel-doc? This will be parsed as a
portion of the documentation of struct TcgCpuOperations, so I was
not expecting kernel-doc to treat the "@cpu: ..." and "@tb: ..."
lines as valid.
--
Eduardo
- Re: [RFC v9 20/32] cpu: Move tlb_fill to tcg_ops, (continued)
[RFC v9 17/32] accel/tcg: split TCG-only code from cpu_exec_realizefn, Claudio Fontana, 2020/12/08
[RFC v9 18/32] cpu: Move synchronize_from_tb() to tcg_ops, Claudio Fontana, 2020/12/08
Re: [RFC v9 18/32] cpu: Move synchronize_from_tb() to tcg_ops, Alex Bennée, 2020/12/09
[RFC v9 19/32] cpu: Move cpu_exec_* to tcg_ops, Claudio Fontana, 2020/12/08
[RFC v9 24/32] cpu: move cc->transaction_failed to tcg_ops, Claudio Fontana, 2020/12/08
Re: [RFC v9 24/32] cpu: move cc->transaction_failed to tcg_ops, Alex Bennée, 2020/12/09