public inbox for qemu-devel@nongnu.org
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: "Peter Maydell" <peter.maydell@linaro.org>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	qemu-block <qemu-block@nongnu.org>
Cc: Michael Tokarev <mjt@tls.msk.ru>,
	QEMU Development <qemu-devel@nongnu.org>,
	Richard Henderson <richard.henderson@linaro.org>,
	Pierrick Bouvier <pierrick.bouvier@linaro.org>
Subject: Re: QEMU requires a 64-bit CPU host architecture?
Date: Wed, 25 Mar 2026 12:21:27 +0100	[thread overview]
Message-ID: <d2db3893-7691-4707-8f43-341d09ceac97@linaro.org> (raw)
In-Reply-To: <CAFEAcA-Jzh0Wan9Dh+Pe9S3cHPeexV5mLaD+juXS8L9eMMd43g@mail.gmail.com>

On 25/3/26 11:24, Peter Maydell wrote:
> On Wed, 25 Mar 2026 at 09:19, Daniel P. Berrangé <berrange@redhat.com> wrote:
>>
>> On Wed, Mar 25, 2026 at 11:08:41AM +0300, Michael Tokarev wrote:
>>> On 20.03.2026 09:45, Michael Tokarev wrote:
>>>> Hi!
>>>>
>>>> Is it intentional that qemu does not build utilities on 32bit hosts
>>>> anymore?
>>>
>>> This is
>>>
>>> commit 372ec46b9f1215f48a4717f2b7ed969f65bfadc6
>>> Author: Richard Henderson <richard.henderson@linaro.org>
>>> Date:   Thu Dec 18 09:56:27 2025 +1100
>>>
>>>      meson: Reject 32-bit hosts
>>>
>>>      32-bit hosts have been deprecated since 10.0.
>>>
>>> How would one build qemu-img and especially qemu-guest-agent, say,
>>> on i386 or armhf?
>>>
>>> I tried removing this error message from meson.build (in $subject),
>>> but it fails to build even the qga due to errors in atomic.h, -
>>> even if these aren't used by qga.
>>>
>>> That smells like a bad decision, - to drop qga and qemu-img support
>>> on 32bit architectures.  Especially qga.
>>
>> IMHO dropping the block related tools is reasonable, as if you keep
>> that, the dependencies that need to remain 32-bit compatible ripple
>> out across a very large part of the codebase.
>>
>> Not having qga though feels like a pretty undesirable consequence,
>> given our message overall is that we were dropping host support but
>> keeping 32-bit emulation.
> 
> Yes, I'm not sure we quite realised that we would be no longer
> building QGA for 32-bits. How much effort would it be to
> reinstate that?

 From the commits in 5053e0a65db...90e2e8ada7c we'd need to (partially)
revert various of the buildsys ones (meson & configure).

Then we'd need to check if the Stat64 API (90e2e8ada7c) was used by
the block tools, and if so also revert the atomic64 patches (around
997d86a9bb1). If not some (sane) refactor is needed for some core
components (disentangle qdev from qom due to the atomic uses). Still
we rely heavily on atomic helpers for threads and co-routines used
by the block layer (and also to reference the QOM objects...).

How / where would we test that (and for how long)?


  reply	other threads:[~2026-03-25 11:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-20  6:45 QEMU requires a 64-bit CPU host architecture? Michael Tokarev
2026-03-20  8:54 ` Daniel P. Berrangé
2026-03-20  9:26   ` Helge Deller
2026-03-25  8:08 ` Michael Tokarev
2026-03-25  9:18   ` Daniel P. Berrangé
2026-03-25 10:24     ` Peter Maydell
2026-03-25 11:21       ` Philippe Mathieu-Daudé [this message]
2026-03-25 11:31         ` Daniel P. Berrangé
2026-03-25 11:55         ` Philippe Mathieu-Daudé
2026-03-25 13:05           ` 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=d2db3893-7691-4707-8f43-341d09ceac97@linaro.org \
    --to=philmd@linaro.org \
    --cc=berrange@redhat.com \
    --cc=mjt@tls.msk.ru \
    --cc=peter.maydell@linaro.org \
    --cc=pierrick.bouvier@linaro.org \
    --cc=qemu-block@nongnu.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox