qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: BALATON Zoltan <balaton@eik.bme.hu>
Cc: "Cédric Le Goater" <clegoate@redhat.com>,
	"Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Stefan Hajnoczi" <stefanha@redhat.com>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	libvir-list@redhat.com, "Paolo Bonzini" <pbonzini@redhat.com>,
	"Reinoud Zandijk" <reinoud@netbsd.org>,
	"Ryo ONODERA" <ryoon@netbsd.org>,
	"Brad Smith" <brad@comstyle.com>, "Stefan Weil" <sw@weilnetz.de>,
	qemu-devel@nongnu.org
Subject: Re: [RFC PATCH] docs/about/deprecated: Deprecate 32-bit host systems
Date: Wed, 5 Apr 2023 14:51:52 +0200	[thread overview]
Message-ID: <5e69b4f0-e8fa-943e-d4bc-4de8421fb630@redhat.com> (raw)
In-Reply-To: <b1e05818-2dce-15fb-9796-680648ca3dd6@eik.bme.hu>

On 05/04/2023 13.54, BALATON Zoltan wrote:
> On Wed, 5 Apr 2023, Thomas Huth wrote:
>> On 04/04/2023 17.42, BALATON Zoltan wrote:
>>> On Tue, 4 Apr 2023, Cédric Le Goater wrote:
>>>> [ adding Zoltan ]
>>>>
>>>> On 4/4/23 16:00, Thomas Huth wrote:
>>>>> On 05/02/2023 23.12, Mark Cave-Ayland wrote:
>>>>>> On 30/01/2023 20:45, Alex Bennée wrote:
>>>>>>
>>>>>>> Daniel P. Berrangé <berrange@redhat.com> writes:
>>>>>>>
>>>>>>>> On Mon, Jan 30, 2023 at 11:47:02AM +0000, Peter Maydell wrote:
>>>>>>>>> On Mon, 30 Jan 2023 at 11:44, Thomas Huth <thuth@redhat.com> wrote:
>>>>>>>>>>
>>>>>>>>>> Testing 32-bit host OS support takes a lot of precious time during 
>>>>>>>>>> the QEMU
>>>>>>>>>> contiguous integration tests, and considering that many OS vendors 
>>>>>>>>>> stopped
>>>>>>>>>> shipping 32-bit variants of their OS distributions and most 
>>>>>>>>>> hardware from
>>>>>>>>>> the past >10 years is capable of 64-bit
>>>>>>>>>
>>>>>>>>> True for x86, not necessarily true for other architectures.
>>>>>>>>> Are you proposing to deprecate x86 32-bit, or all 32-bit?
>>>>>>>>> I'm not entirely sure about whether we're yet at a point where
>>>>>>>>> I'd want to deprecate-and-drop 32-bit arm host support.
>>>>>>>>
>>>>>>>> Do we have a feeling on which aspects of 32-bit cause us the support
>>>>>>>> burden ? The boring stuff like compiler errors from mismatched integer
>>>>>>>> sizes is mostly quick & easy to detect simply through a cross compile.
>>>>>>>>
>>>>>>>> I vaguely recall someone mentioned problems with atomic ops in the 
>>>>>>>> past,
>>>>>>>> or was it 128-bit ints, caused implications for the codebase ?
>>>>>>>
>>>>>>> Atomic operations on > TARGET_BIT_SIZE and cputlb when
>>>>>>> TCG_OVERSIZED_GUEST is set. Also the core TCG code and a bunch of the
>>>>>>> backends have TARGET_LONG_BITS > TCG_TARGET_REG_BITS ifdefs peppered
>>>>>>> throughout.
>>>>>>
>>>>>> I am one of an admittedly small group of people still interested in 
>>>>>> using KVM-PR on ppc32 to boot MacOS, although there is some interest 
>>>>>> on using 64-bit KVM-PR to run super-fast MacOS on modern Talos hardware.
>>>>>>
>>>>>>  From my perspective losing the ability to run 64-bit guests on 32-bit 
>>>>>> hardware with TCG wouldn't be an issue, as long as it were still 
>>>>>> possible to use qemu-system-ppc on 32-bit hardware using both TCG and 
>>>>>> KVM to help debug the remaining issues.
>>>>>
>>>>>   Hi Mark!
>>>>>
>>>>> Just out of curiosity (since we briefly talked about 32-bit KVM on ppc 
>>>>> in today's QEMU/KVM call - in the context of whether qemu-system-ppc64 
>>>>> is a proper superset of qemu-system-ppc when it comes to building a 
>>>>> unified qemu-system binary): What host machine are you using for 
>>>>> running KVM-PR? And which QEMU machine are you using for running macOS? 
>>>>> The mac99 or the g3beige machine?
>>>>
>>>> Zoltan, what about the pegasos2 and sam460ex machines ? can they be run 
>>>> under KVM ?
>>>
>>> I don't know as I don't have PPC hardware to test on but theoretically 
>>> they should work. Although BookE KVM was dropped from Linux I think so 
>>> sam460ex could only work with an old kernel on a BookE host which is now 
>>> rare 
>> [...]
>>
>> Thanks for your explanations, that indeed helps to understand the situation!
>>
>> But are you sure about the BookE KVM removal in the Linux kernel? ... when 
>> I look at the arch/powerpc/kvm/ folder there, I can still see some files 
>> there with "booke" in the name?
> 
> No, I'm not sure but I think KVM on PPC440 (which is used by sam460ex) is 
> likely not working properly. What's there may work on newer cores such as 
> e500 and later but not sure if that can run PPC440 code. I never heard 
> anyone successfully getting sam460ex work with KVM but that may also be 
> because real PPC440 hosts are rare.

Ok, if nobody is really using KVM on PPC440 anymore, we should mark that as 
deprecated in QEMU, I think.

> But if the question is if we still need 32 bit PPC host I think we do for 
> now as that's the only way to run 32bit guests with G3 and G4 until the 
> issues which prevent them to run on 64bit host kernel are fixed.

Yes, understood. As long as 32-bit KVM is in use on ppc, we've got to keep 
the code around.

  Thomas



  reply	other threads:[~2023-04-05 12:53 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-30 11:44 [RFC PATCH] docs/about/deprecated: Deprecate 32-bit host systems Thomas Huth
2023-01-30 11:47 ` Peter Maydell
2023-01-30 12:01   ` Daniel P. Berrangé
2023-01-30 12:22     ` Thomas Huth
2023-01-30 12:43       ` Daniel P. Berrangé
2023-01-30 13:07         ` Thomas Huth
2023-01-30 19:19     ` Richard Henderson
2023-01-30 23:14       ` Philippe Mathieu-Daudé
2023-01-30 23:33         ` Richard Henderson
2023-01-31  0:19           ` Philippe Mathieu-Daudé
2023-01-30 20:45     ` Alex Bennée
2023-02-05 22:12       ` Mark Cave-Ayland
2023-04-04 14:00         ` Thomas Huth
2023-04-04 14:20           ` Cédric Le Goater
2023-04-04 15:58             ` BALATON Zoltan
2023-04-04 14:32           ` Cédric Le Goater
2023-04-04 15:42             ` BALATON Zoltan
2023-04-05  8:01               ` Thomas Huth
2023-04-05 11:54                 ` BALATON Zoltan
2023-04-05 12:51                   ` Thomas Huth [this message]
2023-04-04 15:50           ` BALATON Zoltan
2023-04-05 21:01           ` Mark Cave-Ayland
2023-02-22  9:11       ` Bernhard Beschow
2023-02-22  9:51         ` Daniel P. Berrangé
2023-02-22 12:28           ` Reinoud Zandijk
2023-02-22 13:37             ` Alex Bennée
2023-02-17 10:36 ` Markus Armbruster
2023-02-17 10:40   ` Daniel P. Berrangé
2023-02-17 10:45   ` Claudio Fontana
2023-02-17 10:47   ` Daniel P. Berrangé
2023-02-17 11:05     ` Stefan Weil via
2023-02-17 11:43       ` Markus Armbruster
2023-02-17 11:47       ` Daniel P. Berrangé
2023-02-19 11:27       ` Reinoud Zandijk
2023-02-19 12:12         ` Stefan Weil via
2023-02-17 16:38     ` Paolo Bonzini
2023-02-17 17:43       ` Philippe Mathieu-Daudé
2023-02-17 18:57         ` Thomas Huth
2023-02-18 22:54           ` Jiaxun Yang
2023-02-17 19:49       ` Thomas Huth
2023-02-17 16:06   ` Reinoud Zandijk
2023-02-17 17:20     ` Daniel P. Berrangé
2023-02-17 18:22     ` Richard Henderson
2023-02-19 11:07       ` Reinoud Zandijk
2023-02-17 11:09 ` Claudio Fontana

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=5e69b4f0-e8fa-943e-d4bc-4de8421fb630@redhat.com \
    --to=thuth@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=balaton@eik.bme.hu \
    --cc=berrange@redhat.com \
    --cc=brad@comstyle.com \
    --cc=clegoate@redhat.com \
    --cc=libvir-list@redhat.com \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=reinoud@netbsd.org \
    --cc=richard.henderson@linaro.org \
    --cc=ryoon@netbsd.org \
    --cc=stefanha@redhat.com \
    --cc=sw@weilnetz.de \
    /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).