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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4054CC636D3 for ; Wed, 8 Feb 2023 18:15:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231436AbjBHSPF (ORCPT ); Wed, 8 Feb 2023 13:15:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230291AbjBHSPC (ORCPT ); Wed, 8 Feb 2023 13:15:02 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5B7720D04 for ; Wed, 8 Feb 2023 10:15:01 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 53155B81F2F for ; Wed, 8 Feb 2023 18:15:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDACAC4339C for ; Wed, 8 Feb 2023 18:14:58 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="NLSgivwX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1675880093; 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=fkmKNTawokdU8eWiUB7o9aeTXnCHogeHtcpJ1JEN3Go=; b=NLSgivwXPc0srG8OwJnxZNEiPjmoV/SfbdQs/RSGfSjoMmwLQvIrTOzsTrRe4N5haMZjIq hTIidqKgsm/jG1hy9XqYYHNrmkENKXXUh5eM5ZtaEFhCWO/h7McVEKx7KSzeUDMdI0KyyQ qu8JPrY5Xp6aa7kvvMjfQmTG71eBNqA= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 99ed9e3a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Wed, 8 Feb 2023 18:14:53 +0000 (UTC) Received: by mail-yb1-f171.google.com with SMTP id g2so23097930ybk.8 for ; Wed, 08 Feb 2023 10:14:52 -0800 (PST) X-Gm-Message-State: AO0yUKWXbybq3EQ8kR+0tNRxfrNCs/PV2TZbsmSuX5vZCch2wCGqYXRE ROQCKDzhRhbNIFGm1VDjHxeFlI/Tso8LVdSS2rU= X-Google-Smtp-Source: AK7set+p1xHPDY2LtP8pmku3oIkKYu8rx2nZ2i2+ARbj+0BAlqDqUyAtghrIZa1ZPf04eV3dzU6bkuHQw8LEJEbKfnA= X-Received: by 2002:a25:5089:0:b0:85c:9b84:1a09 with SMTP id e131-20020a255089000000b0085c9b841a09mr1137236ybb.351.1675880092196; Wed, 08 Feb 2023 10:14:52 -0800 (PST) MIME-Version: 1.0 References: <20230208180835.234638-1-Jason@zx2c4.com> <20230208131125-mutt-send-email-mst@kernel.org> In-Reply-To: <20230208131125-mutt-send-email-mst@kernel.org> From: "Jason A. Donenfeld" Date: Wed, 8 Feb 2023 15:14:38 -0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] x86: temporarily remove all attempts to provide setup_data To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org, x86@kernel.org, linux-kernel@vger.kernel.org, Dov Murik , Tom Lendacky , Gerd Hoffmann , =?UTF-8?Q?Daniel_P_=2E_Berrang=C3=A9?= , Paolo Bonzini , Richard Henderson , "H . Peter Anvin" , =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= , Nathan Chancellor , Borislav Petkov , Eric Biggers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 8, 2023 at 3:13 PM Michael S. Tsirkin wrote: > > On Wed, Feb 08, 2023 at 03:08:35PM -0300, Jason A. Donenfeld wrote: > > All attempts at providing setup_data have been made as an iteration on > > whatever was there before, stretching back to the original > > implementation used for DTBs that [mis]used the kernel image itself. > > We've now had a dozen rounds of bugs and hacks, and the result is > > turning into a pile of unmaintainable and increasingly brittle hacks. > > > > Let's just rip out all the madness and start over. We can re-architect > > this based on having a separate standalone setup_data file, which is ho= w > > it should have been done in the first place. This is a larger project > > with a few things to coordinate, but we can't really begin thinking > > about that while trying to play whack-a-mole with the current buggy > > implementation. > > > > So this commit removes the setup_data setting from x86_load_linux(), > > while leaving intact the infrastructure we'll need in the future to try > > again. > > > > Cc: Michael S. Tsirkin > > Cc: Dov Murik > > Cc: Tom Lendacky > > Cc: Gerd Hoffmann > > Cc: Daniel P. Berrang=C3=A9 > > Cc: Paolo Bonzini > > Cc: Richard Henderson > > Cc: H. Peter Anvin > > Cc: Philippe Mathieu-Daud=C3=A9 > > Cc: Nathan Chancellor > > Cc: Borislav Petkov > > Cc: Eric Biggers > > Signed-off-by: Jason A. Donenfeld > > I think I'll be happier if this is just a revert of > the relevant commits in reverse order to make life easier > for backporters. > Unless that's too much work as we made other changes around > this code? I think that's going to be messy. And it won't handle the dtb stuff either straightforwardly.