qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Claudio Imbrenda <imbrenda@linux.ibm.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
	Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: util/async-teardown.c: is it really needed for --disable-system build?
Date: Mon, 14 Aug 2023 09:01:08 +0200	[thread overview]
Message-ID: <20230814090108.472547d8@p-imbrenda> (raw)
In-Reply-To: <a2f99abb-7ad6-41b4-1b74-ab7dba3d2424@tls.msk.ru>

On Sat, 12 Aug 2023 12:48:14 +0300
Michael Tokarev <mjt@tls.msk.ru> wrote:

> 12.08.2023 12:38, Michael Tokarev wrote:
> ...
> > It smells like, at the very least, os-posix.c should be split. We shouldn't include
> > a ton of qemu-system functionality (like very specific option parsing) into qemu-nbd
> > for example.
> > 
> > How about splitting os-posix.c into a few files in util/ (not in the root dir), and
> > adding them to util_ss in case of posix-os?  Ditto for os-win32.c, I guess, but I
> > haven't looked at this.
> > 
> > And for the question in $subj, this one needs to be guarded by CONFIG_SOFTMMU.  
> 
> Or maybe better yet, put the softmmu-specific functions (one very good example here
> is os_parse_cmd_args() function - it clearly belongs to softmmu/, it should never
> has been in global os-foo.c but in some softmmu-os-foo.c instead.  This way,
> async-teardown.c is moved to softmmu/ too, maybe os-linux-async-teardown.c.
> 
> /mjt

I think we could guard the offending item with CONFIG_SOFTMMU for now,
to immediately fix the issues you raised, and do the refactoring you
proposed later (e.g. next cycle).

what do you think?


  reply	other threads:[~2023-08-14  7:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-12  9:38 util/async-teardown.c: is it really needed for --disable-system build? Michael Tokarev
2023-08-12  9:48 ` Michael Tokarev
2023-08-14  7:01   ` Claudio Imbrenda [this message]
2023-08-14  7:12     ` Michael Tokarev
2023-08-14  7:27       ` Claudio Imbrenda
2023-08-14  8:31         ` Michael Tokarev

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=20230814090108.472547d8@p-imbrenda \
    --to=imbrenda@linux.ibm.com \
    --cc=mjt@tls.msk.ru \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).