Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B42A4C7619A for ; Wed, 5 Apr 2023 12:53:08 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pk2cX-0005vf-AO; Wed, 05 Apr 2023 08:52:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pk2cS-0005vQ-Oq for qemu-devel@nongnu.org; Wed, 05 Apr 2023 08:52:08 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pk2cQ-0005nh-Rt for qemu-devel@nongnu.org; Wed, 05 Apr 2023 08:52:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680699125; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=M6LhB0llsVngPXE/fd/WLesmHZl+naY53CtM/QcmCXs=; b=PewjJBRVsKSd1RzAlrw9I4mx3YmWA3wPy5mlDCtD7smfWt+HxOgqrTw0CxafQy4+UOV1Fz osgiSVC2RyCzJgkDNTulU6fMkcifzrZ+k0/Mtsq93T8eP1NM/OSSwPK9okuc/uzC7GroZw yBgcgArLDeC4IAije1VjmYlgGaBg/Tc= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-360-vzdyp_WEPdGz3JIO1PK8Zg-1; Wed, 05 Apr 2023 08:52:03 -0400 X-MC-Unique: vzdyp_WEPdGz3JIO1PK8Zg-1 Received: by mail-qt1-f197.google.com with SMTP id bp42-20020a05622a1baa00b003e6748b05edso1129571qtb.2 for ; Wed, 05 Apr 2023 05:52:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680699123; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=M6LhB0llsVngPXE/fd/WLesmHZl+naY53CtM/QcmCXs=; b=5wXWosH3UigKVRgotudpcthzh78MfkRm1uRRegiM4kGJ2uZrI63Ptpkki6tXWQseRd OaCX1tjVGqUa7LGpYNA/e3l5d2SG6UYjc8WYESiLZIfOm/v3I+m7OlLQ4AdkVmtuTzaz 74721oE24fC0H8NFn7hzaa2XWb71qf3UCyXWCTq+wwFsPXniztYTZTsIqa87wFaKFmNc ycYidTJPUi+pBeIWKdd7GhD7udvHLFNa5alN4KciIELTV8Y0hb+Kjqe/zN5bFxH2VM0N Thm+VEioYfkEU3iiaUzRVV5VeN5jWUSokcXeRrrBSnJT6OaiAf/uEh9klayzElidexnk KdPw== X-Gm-Message-State: AAQBX9fOlDr7KbHlkMW9NHVHkAgF9ruYRHTEJWlko9fKDlNR6xb94eK6 C7+TEctAyYcCGQec5dEyPL7tOwiQkY3TH95YvrGousnWg6g1sl+U94ruYeb0MeKB3xsZxfwwCzY cq098L3CAm9zTsSI= X-Received: by 2002:a05:6214:27ed:b0:5e0:6931:3b8 with SMTP id jt13-20020a05621427ed00b005e0693103b8mr8353349qvb.2.1680699123249; Wed, 05 Apr 2023 05:52:03 -0700 (PDT) X-Google-Smtp-Source: AKy350bIEzGdCvd4CrSq2F792UQK6FNwJPxDvIRTwYeXeHhhFrC612EkLaSmHIHVseZ3RLFFsQVUVw== X-Received: by 2002:a05:6214:27ed:b0:5e0:6931:3b8 with SMTP id jt13-20020a05621427ed00b005e0693103b8mr8353321qvb.2.1680699122959; Wed, 05 Apr 2023 05:52:02 -0700 (PDT) Received: from [192.168.8.101] (tmo-066-157.customers.d1-online.com. [80.187.66.157]) by smtp.gmail.com with ESMTPSA id mx19-20020a0562142e1300b005dd8b9345besm4191789qvb.86.2023.04.05.05.51.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Apr 2023 05:52:02 -0700 (PDT) Message-ID: <5e69b4f0-e8fa-943e-d4bc-4de8421fb630@redhat.com> Date: Wed, 5 Apr 2023 14:51:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Content-Language: en-US To: BALATON Zoltan Cc: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= , Mark Cave-Ayland , =?UTF-8?Q?Alex_Benn=c3=a9e?= , =?UTF-8?Q?Daniel_P=2e_Berrang=c3=a9?= , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Peter Maydell , Stefan Hajnoczi , Richard Henderson , libvir-list@redhat.com, Paolo Bonzini , Reinoud Zandijk , Ryo ONODERA , Brad Smith , Stefan Weil , qemu-devel@nongnu.org References: <20230130114428.1297295-1-thuth@redhat.com> <87h6w7694t.fsf@linaro.org> <4e42ea6b-0f9b-69e0-1593-c3288712d13c@redhat.com> <77c41865-1585-6a3a-f02e-1c072a4368bd@eik.bme.hu> <55cab42d-19b1-c454-8979-0aaae4a64a00@redhat.com> From: Thomas Huth Subject: Re: [RFC PATCH] docs/about/deprecated: Deprecate 32-bit host systems In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-1.355, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org 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é writes: >>>>>>> >>>>>>>> On Mon, Jan 30, 2023 at 11:47:02AM +0000, Peter Maydell wrote: >>>>>>>>> On Mon, 30 Jan 2023 at 11:44, Thomas Huth 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