qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Thoughts on CONFIG_TOOLS & CONFIG_USER_ONLY
@ 2021-12-31 11:20 Philippe Mathieu-Daudé
  0 siblings, 0 replies; only message in thread
From: Philippe Mathieu-Daudé @ 2021-12-31 11:20 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Thomas Huth, Philippe Mathieu-Daudé,
	Qemu-block

Hi,

The CONFIG_USER_ONLY definition allows limiting user-mode
code to user emulation (in contrast to system emulation).
We often use it in common code.

Often the negative form (to *exclude* user-mode) is used.
This works fine with system emulation in mind, but it could
introduce subtle bugs when neither user nor system emulation
are used, for example with tools.

There is a CONFIG_TOOLS definition, but it is not used in C:

  config-host.mak:CONFIG_TOOLS=y
  config-host.h:#define CONFIG_TOOLS 1

Not sure how to clarify / improve, this is a bit confusing.

Just thinking loudly :)

Regards,

Phil.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-31 11:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-31 11:20 Thoughts on CONFIG_TOOLS & CONFIG_USER_ONLY Philippe Mathieu-Daudé

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).