On 27/1/25 08:00, Markus Armbruster wrote:
Philippe Mathieu-Daudé <phi...@linaro.org> writes:

Add a class_post_init() handler to be called by parents
*after* child class_init() handler is called. This is
necessary to have parent class check children properly
set some values or mandatory handlers.

Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>

Plausible, but I'd like to see actual use.  What uses do you have in
mind?

See for example:
https://lore.kernel.org/qemu-devel/20250125170125.32855-25-phi...@linaro.org/

Where the abstract parent CPUClass checks concrete target implementation
registered a handler.

(I'll cc you on another use shortly).

Reply via email to