qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Michael Tokarev <mjt@tls.msk.ru>,
	Peter Maydell <peter.maydell@linaro.org>
Cc: Joao Martins <joao.m.martins@oracle.com>,
	QEMU Developers <qemu-devel@nongnu.org>,
	David Woodhouse <dwmw@amazon.co.uk>
Subject: Re: xen bits broke x32 build
Date: Wed, 12 Apr 2023 12:19:46 +0200	[thread overview]
Message-ID: <3d4d8f73-d96c-6616-0dc7-d839c84162bc@linaro.org> (raw)
In-Reply-To: <095a184b-a289-8807-efe8-882155b729c4@msgid.tls.msk.ru>

On 11/4/23 19:30, Michael Tokarev wrote:
> 11.04.2023 15:09, Peter Maydell wrote:
> ..
>> Frankly I would prefer to just say "we don't support x32".
>> It's a weird non-standard configuration that as far as I'm
>> aware is very little used. Its stats in the debian
>> popularity-contest graphs peaked at 18 users in 2017, and
>> have mostly been fluctuating between 1 and 3 for the last
>> couple of years:
>> https://popcon.debian.org/stat/sub-x32.png
> 
> x32 was a nice idea but it lacked some final steps for it
> to fly.

I used to use a FreeRTOS POSIX/ucontext port compiled in x32.
This was useful to mimic FreeRTOS baremetal ARM32 memory footprint.

I see having a x32 QEMU binary as a masochist experiment =)

> In my opinion anyway.  Its compactness and speed
> are fantastic, - qemu build is about 10..15% faster with
> x32 gcc than it is with x86_64 gcc.
> 
> At the time debian picked it up, it was not very usable
> b/c too many things didn't work and needed care.  Today,
> much more software actually works on x32. It is more,
> today with debian multiarch setup, it is possible to install
> some *parts* of the system to be x32 while the rest being
> x86_64, either for parts which benefits from x32 the most,
> or the other way around, main x32 and some parts x86_64.
> But it *still* lacks some infrastructure in debian, so it
> is possible to do with stable or testing distribution, -
> right now it is possible with unstable only.  Maybe we
> can change that for bookworm+.
> 
> The thing is that now, it is much more complete than it
> was in 2017, and it'd be really sad if it goes away.
> 
> x32 reveals some interesting problems in the code such
> as type misuse, it already helped to find and fix some
> bugs in some software, - for example in samba, where
> a pointer was misused to store a time_t (which would
> break with past-2038 time_t).

Why wasn't this caught by other 32-bit target?

> qemu never said it supports x32, and no one demanded
> such support from it. It's interesting to have it working
> there still, I *think*, as long as it does not require
> extra efforts.
> 
> I'm fine to maintain the change required to keep it at
> least buildable on x32 in debian - again as long as it
> does not require huge efforts.
> 
>> We're currently planning to deprecate-and-drop 32-bit x86
>> hosts, which are much more widely used than this. I see
>> no reason why we should care about this oddball failed
>> experiment of an ABI...
> 
> Thanks,
> 
> /mjt
> 



      reply	other threads:[~2023-04-12 10:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-01  8:40 xen bits broke x32 build Michael Tokarev
2023-04-01 11:45 ` Joao Martins
2023-04-01 11:57   ` Michael Tokarev
2023-04-01 12:10     ` David Woodhouse
2023-04-03  6:46       ` Philippe Mathieu-Daudé
2023-04-03  8:46         ` David Woodhouse
2023-04-01 12:07   ` Michael Tokarev
2023-04-11 11:56 ` Michael Tokarev
2023-04-11 12:09   ` Peter Maydell
2023-04-11 17:30     ` Michael Tokarev
2023-04-12 10:19       ` Philippe Mathieu-Daudé [this message]

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=3d4d8f73-d96c-6616-0dc7-d839c84162bc@linaro.org \
    --to=philmd@linaro.org \
    --cc=dwmw@amazon.co.uk \
    --cc=joao.m.martins@oracle.com \
    --cc=mjt@tls.msk.ru \
    --cc=peter.maydell@linaro.org \
    --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).