All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: marcandre.lureau@redhat.com
Cc: qemu-devel@nongnu.org,
	"Pierrick Bouvier" <pierrick.bouvier@oss.qualcomm.com>,
	"Markus Armbruster" <armbru@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Anton Johansson" <anjo@rev.ng>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>
Subject: Re: [PATCH 3/6] system/vl: initialize QOM first
Date: Wed, 29 Apr 2026 09:46:34 +0100	[thread overview]
Message-ID: <afHFak0kkt2fiL0P@redhat.com> (raw)
In-Reply-To: <177745176384.2166241.6921788598496135839.b4-review@b4>

On Wed, Apr 29, 2026 at 12:36:03PM +0400, marcandre.lureau@redhat.com wrote:
> On Tue, 28 Apr 2026 16:45:16 -0700, Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> wrote:
> > diff --git a/system/vl.c b/system/vl.c
> > index 0e1fc217b4f..b4a5ea6f857 100644
> > --- a/system/vl.c
> > +++ b/system/vl.c
> > @@ -2889,6 +2889,9 @@ void qemu_init(int argc, char **argv)
> >      os_setup_limits();
> >  
> >      module_init_info(qemu_modinfo);
> > +    /* We need to initialize QOM first to detect target */
> > +    module_call_init(MODULE_INIT_QOM);
> > +
> >      module_allow_arch(target_name());
> 
> This change is not trivial. By moving the call here, we lose the
> initializations from qemu_init_subsystems(). Verifying that all
> type_init() code is safe to run without it is a tedious task. It might
> be better to introduce a new MODULE_INIT_TARGET_INFO instead

I'd be inclined to have a MODULE_INIT_QOM_EARLY, along with a
type_init_early(), so we're not presuming target info is the only
use case for earlier init.

Regards,
Daniel



  reply	other threads:[~2026-04-29  8:47 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-28 23:45 [PATCH 0/6] single-binary: deduplicate target_info() Pierrick Bouvier
2026-04-28 23:45 ` [PATCH 1/6] target-info: extract target_info() definition in target-info-init.h Pierrick Bouvier
2026-04-29  8:36   ` marcandre.lureau
2026-04-28 23:45 ` [PATCH 2/6] target-info: introduce TargetInfo in QOM Pierrick Bouvier
2026-04-29  8:36   ` marcandre.lureau
2026-04-29 18:22     ` Pierrick Bouvier
2026-04-28 23:45 ` [PATCH 3/6] system/vl: initialize QOM first Pierrick Bouvier
2026-04-29  8:36   ` marcandre.lureau
2026-04-29  8:46     ` Daniel P. Berrangé [this message]
2026-04-29 21:23       ` Pierrick Bouvier
2026-04-28 23:45 ` [PATCH 4/6] qom/object: add object_class_get_list_by_name_prefix Pierrick Bouvier
2026-04-29  8:36   ` marcandre.lureau
2026-04-29  8:48     ` Daniel P. Berrangé
2026-04-29 21:20       ` Pierrick Bouvier
2026-04-28 23:45 ` [PATCH 5/6] target-info-qom: detect target from QOM Pierrick Bouvier
2026-04-29  8:36   ` marcandre.lureau
2026-04-28 23:45 ` [PATCH 6/6] target-info: replace target_info() in system-mode Pierrick Bouvier
2026-04-29  8:36   ` marcandre.lureau
2026-04-30  4:00 ` [PATCH 0/6] single-binary: deduplicate target_info() Pierrick Bouvier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=afHFak0kkt2fiL0P@redhat.com \
    --to=berrange@redhat.com \
    --cc=anjo@rev.ng \
    --cc=armbru@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@linaro.org \
    --cc=pierrick.bouvier@oss.qualcomm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.