Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4356145rwb; Tue, 20 Sep 2022 12:39:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ofVU7lnszw9ESzcNqGHlnss1x8gMf6sRFu2QSF/fZJx0MVGJyVri4iyHmfWcBH2Jqm4Kb X-Received: by 2002:a17:907:16a1:b0:77c:ed93:3dbd with SMTP id hc33-20020a17090716a100b0077ced933dbdmr18809418ejc.728.1663702755000; Tue, 20 Sep 2022 12:39:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663702754; cv=none; d=google.com; s=arc-20160816; b=Fy4+aWS2TmKiCKDb2NdA3rpTjesWiCYhhrmkYs6OfvEc7Gm1BbKWtfzkVDQmaSwA09 SZfr2kfZYrs6wYVhdfX9KkXdFbCUUHvPA7lKCIeZUlfokpr8i+yqbxzu8C+Xpsv0740q 3TwQn8/FmTYUueSv2pv+WTL9GkYowTkOqK5V0CzpbVh+R5gT6TSLeFWKSdB8WDFl/8Hk JaDceRvbRuVITdQoBV/GZISmbU4QjMcun8GGvoOozzPPG0FAYTBJDgFU7n1QgKrLN41u vXpscB3Wf72xbAQchYa3hiu8Jn6jGJAAHr4ECV6AWuL9CaNUsfljq3WVvQncDOhFUyg5 gwxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FEzgIy7+VixOuaBNBHyswL6EnQKt/p0p/2LZpYHPS9U=; b=NM+FnLK/B99jEQZpYVWrOdI6glR/hAzNkEQmYPPfIhyWkcKyQEFratGgZ2Scnk8PnX Sad8Awke2Uzn+eSoszfzyT+1rY7FJ640napAag6lKXshmNmxp2HyZn+dMSTf1Fl6J1J1 MH7Lj5oZ0nZE4OBSH7dOweonSuij6DKC+AQyJBK83vhpqQuyHvzYI3WEkKOsgAp8ygE3 ItTWvc63uKHdi7HAhZ8KRHeTANxIcTylu1rZBS5diVKVEWalnghiQRXFX6CCb0VqKIAG RgDO+hc52TGieLLyQvvz4gMBLMpyBDyXQJJE7HR+EdbC5NYmqQRZdCVaVRvALsri9Jwf SuGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=mn7vCIJG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y5-20020a50e605000000b0044e762b8d4bsi526925edm.480.2022.09.20.12.38.49; Tue, 20 Sep 2022 12:39:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=mn7vCIJG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229902AbiITTTS (ORCPT + 99 others); Tue, 20 Sep 2022 15:19:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbiITTTQ (ORCPT ); Tue, 20 Sep 2022 15:19:16 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC1A261D68; Tue, 20 Sep 2022 12:19:14 -0700 (PDT) Received: from zn.tnic (p200300ea9733e791329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e791:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 5C7241EC01D4; Tue, 20 Sep 2022 21:19:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1663701549; 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:in-reply-to:in-reply-to: references:references; bh=FEzgIy7+VixOuaBNBHyswL6EnQKt/p0p/2LZpYHPS9U=; b=mn7vCIJGvsWZLdM9xxpNou/6M4KSIPKPBzD8db6NOZvjnFqZi3TX9ksfL4zkdDNaH9Fh7D Jn0s9NdlwuKB0lAVopNcz9qg/ODzwUsB4YusCJF9hofr6XVkzS8isw3wie50qMYLIZi8dP Rc2aaia0xXB0QB6c9RB39MdDOyM9yGo= Date: Tue, 20 Sep 2022 21:19:05 +0200 From: Borislav Petkov To: Ard Biesheuvel Cc: linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Dave Hansen , Michael Roth Subject: Re: [PATCH 1/6] x86/head_64: clean up mixed mode 32-bit entry code Message-ID: References: <20220815134223.740112-1-ardb@kernel.org> <20220815134223.740112-2-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220815134223.740112-2-ardb@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 15, 2022 at 03:42:18PM +0200, Ard Biesheuvel wrote: > The x86_64 32-bit entry code is a jumble of EFI and SEV routines, which > is not good for maintainability. Let's isolate the EFI mixed mode code > and combine it with the boot service thunk that lives in another .S > file, so that we can remove it from head_64.S Who is "we"? Please use passive voice in all text. > Signed-off-by: Ard Biesheuvel > --- > arch/x86/boot/compressed/Makefile | 6 +- > arch/x86/boot/compressed/efi_mixed.S | 358 ++++++++++++++++++++ > arch/x86/boot/compressed/efi_thunk_64.S | 195 ----------- > arch/x86/boot/compressed/head_32.S | 4 - > arch/x86/boot/compressed/head_64.S | 149 +------- > drivers/firmware/efi/libstub/x86-stub.c | 3 +- > 6 files changed, 370 insertions(+), 345 deletions(-) So I'm really nervous about patches touching early asm code where multiple things happen all at once instead of each logical change being split into a single patch: here I see code movement but then other functionality is being added too. So I'd really appreciate it if you split this one into smaller, obvious, even boring patches - this will simplify review considerably. For example, do only a mechanical code movement in one patch and then add the new startup_64_mixedmode thing in another. And so on. That would be greatly appreciated. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette