|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH 2/2] qom: Introduce class_post_init() handler |
Date: | Mon, 27 Jan 2025 09:06:09 +0100 |
User-agent: | Mozilla Thunderbird |
On 27/1/25 08:00, Markus Armbruster wrote:
Philippe Mathieu-Daudé <philmd@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é <philmd@linaro.org>Plausible, but I'd like to see actual use. What uses do you have in mind?
See for example: 20250125170125.32855-25-philmd@linaro.org/">https://lore.kernel.org/qemu-devel/20250125170125.32855-25-philmd@linaro.org/ Where the abstract parent CPUClass checks concrete target implementation registered a handler. (I'll cc you on another use shortly).
[Prev in Thread] | Current Thread | [Next in Thread] |