Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: buildroot@buildroot.org, Romain Naour <romain.naour@gmail.com>
Subject: Re: [Buildroot] [PATCH v5 4/9] package/qemu: introduce kvm and tcg system options
Date: Wed, 4 Feb 2026 17:21:55 +0100	[thread overview]
Message-ID: <aYNvzzbE_lY8YybW@windsurf> (raw)
In-Reply-To: <20250911212752.266940-5-alex.bennee@linaro.org>

Hello Alex,

We have finally applied your patch, with a few tweaks, see below.

On Thu, Sep 11, 2025 at 10:27:44PM +0100, Alex Bennée wrote:
>  if BR2_PACKAGE_QEMU_SYSTEM
>  
> +config BR2_PACKAGE_QEMU_SYSTEM_KVM
> +	bool "Enable KVM system virtualisation"
> +	default y
> +	help
> +	  Say 'y' here to enable a QEMU with KVM support.
> +	  If unsure, say 'y'
> +
> +config BR2_PACKAGE_QEMU_SYSTEM_TCG
> +	bool "Enable TCG system emulation"
> +	default y
> +	help
> +	  Say 'y' here to enable QEMU binaries which can emulate foreign
> +	  architectures using the TCG JIT.

If both options are disabled, no qemu binary is built at all. The
build doesn't fail, but it means that existing packages, such as
libvirt that select qemu + qemu-system might be confused. So we've
added a select BR2_PACKAGE_QEMU_SYSTEM_TCG if
!BR2_PACKAGE_QEMU_SYSTEM_KVM under the BR2_PACKAGE_QEMU_SYSTEM option,
ensuring that at least one of the two gets enabled.

>  config BR2_PACKAGE_QEMU_CHOOSE_TARGETS
>  	bool "Select individual emulator targets"
> -	depends on BR2_PACKAGE_QEMU_SYSTEM || BR2_PACKAGE_QEMU_LINUX_USER
> +	depends on BR2_PACKAGE_QEMU_SYSTEM_TCG || BR2_PACKAGE_QEMU_LINUX_USER
>  	help
> -	  By default, all targets (system and/or user, subject to the
> -	  corresponding options, above) are built. If you only need a
> -	  subset of the emulated targets, say 'y' here and enable at
> -	  least one target, below.
> +	  By default, all targets system targets are built when TCG is

This updated only accounted for TCG, but this option also appears for
user-mode emulation. So we've simplified since to "By default, all
system targets are built".

Applied with those changes, thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2026-02-04 16:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-11 21:27 [Buildroot] [PATCH v5 0/9] kvm-unit-tests: update deps and fine tune qemu Alex Bennée
2025-09-11 21:27 ` [Buildroot] [PATCH v5 1/9] toolchain/external: allow installing of libc utils Alex Bennée
2025-09-11 21:27 ` [Buildroot] [PATCH v5 2/9] package/kvm-unit-tests: assume AArch64 supports KVM Alex Bennée
2026-02-13 19:36   ` Thomas Perale via buildroot
2025-09-11 21:27 ` [Buildroot] [PATCH v5 3/9] package/kvm-unit-tests: update dependencies Alex Bennée
2025-09-11 21:27 ` [Buildroot] [PATCH v5 4/9] package/qemu: introduce kvm and tcg system options Alex Bennée
2026-02-04 16:21   ` Thomas Petazzoni via buildroot [this message]
2025-09-11 21:27 ` [Buildroot] [PATCH v5 5/9] package/kvm-unit-tests: bump to v2025-07-31 Alex Bennée
2025-09-11 21:27 ` [Buildroot] [PATCH v5 6/9] package/kvm-unit-tests: honour BR2_ARM64_PAGE_SIZE Alex Bennée
2025-09-11 21:27 ` [Buildroot] [PATCH v5 7/9] support/testing: add test for kvm-unit-tests Alex Bennée
2025-09-11 21:27 ` [Buildroot] [PATCH v5 8/9] package/kvmtool: bump to current HEAD Alex Bennée
2025-12-16 22:03   ` Julien Olivain via buildroot
2025-09-11 21:27 ` [Buildroot] [PATCH v5 9/9] package/kvm-unit-tests: allow kvmtool to be used Alex Bennée

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=aYNvzzbE_lY8YybW@windsurf \
    --to=buildroot@buildroot.org \
    --cc=alex.bennee@linaro.org \
    --cc=romain.naour@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    /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