Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2089048rwd; Mon, 15 May 2023 07:09:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ55fqxn/oc4oIXxZpavNESz8ylzw3ZxSjgYHJBRu5m2xqANHuAkdijSTAnh64dCBiLwTYgh X-Received: by 2002:a05:6a20:6a14:b0:100:1ba4:d67c with SMTP id p20-20020a056a206a1400b001001ba4d67cmr32146313pzk.62.1684159789277; Mon, 15 May 2023 07:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684159789; cv=none; d=google.com; s=arc-20160816; b=eAsl8SuxtJ1wYn2uYOIyVSlSEtia8XbJCCMpWaz/NAkqLtP2x196D4B3O+g2yLnhhN me6zsuGueTWOZip91ah9+RPX3omE//ZFUqssqQZowv7Db9alTKg4kXNr+O+sGwLGHNRq ucY+/BH773QM3290B/Vvl536vE96G7BJekDOGcn/nrC/y/nM/aCxz9Nb/WKCVwxWOnBB axxR164MpUjDbzBqsQOqKCZQYmusvUB3j7KhsoSvyBSLcmDk3ptOCswR1wtX3OW+tHhq u9kp1Lurb3euogzVOMR5GdiKfndqIzivMZXo/O1jP42PuJw7MpmKvhWm4Lhf/yTX+XkL Kb7g== 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:feedback-id :dkim-signature:dkim-signature; bh=55ze2uE9yGUmO+hkklQreacxsQYWQtHVHfVI9xhbDmw=; b=kqUhmPrt0Rk7eueY8h/hNx6U1jRO27muYMxxadp2F/MGOh+gp/m+dlMrHtHqyJhlu0 O7MVsVM4uIYUF3OJ5GVEexpciYHjAg88Pv4buUDaFir8MpQOHzGUWfG/Cc+fSEe9wLoa +B1vikRowIhxMu/OUKpNH8G6NAXLVJrVloG9oBuHO7TFLdp/cV6k0GQItj0jLr0XiQs+ ytDkrJxqOjZlSzOq0phjDvAKwDgAKegqlmVqdX9QrRiu4vqHUl1sVIwDjrb0j/g3/daA MqfSd2qYdHS34ev5RmKsr5IWKi3+vY5cbK/2sASH1n0j5cprocZEjOJgH8xAkjlG2ptH LNwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov.name header.s=fm2 header.b=Qyzqq4sb; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=yKHWNH+P; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kx10-20020a17090b228a00b0025090b316besi18447237pjb.107.2023.05.15.07.09.35; Mon, 15 May 2023 07:09:49 -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=@shutemov.name header.s=fm2 header.b=Qyzqq4sb; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=yKHWNH+P; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230052AbjEON7p (ORCPT + 99 others); Mon, 15 May 2023 09:59:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238931AbjEON7i (ORCPT ); Mon, 15 May 2023 09:59:38 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E779F2708; Mon, 15 May 2023 06:59:32 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 33A7F5C0195; Mon, 15 May 2023 09:59:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 15 May 2023 09:59:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov.name; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1684159172; x= 1684245572; bh=55ze2uE9yGUmO+hkklQreacxsQYWQtHVHfVI9xhbDmw=; b=Q yzqq4sbZEr/ZQcKeWbIljS9rAfjVEmZ/spDqdk3kXle5SpWeXMGNt0l0JPZcb0oc bGzV2T0Vt1vMRF3TPrVXPXvhgnKN85Typy0AtnTVD8jWP394SjrabkJnvaIdZupv JLUjcm6NJQBTvgATDXZ1D/3eQ3WEXBljrfuhbsdebqfN8IQLtpx7srxl2sIPXFFK b4ONZfbUXJpIdZS5+xiQG96vnytzag/Qt6WsQryot6JvgQabHYLPFNK3YxWTCkXK utZWftxPzKr/KmVvZL2o9mR+Xa2mCCTo/wH1L+/T89EOS/3T31Dv5e+tWzFxMuxy eN0MU5OMvluynDG4GdNMQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1684159172; x=1684245572; bh=55ze2uE9yGUmO +hkklQreacxsQYWQtHVHfVI9xhbDmw=; b=yKHWNH+PLhUi1IemftyGq+1HTsL5w i4C7gReqAaVvj8AgUg/4UW3TlJMEXmQZXsejYjMT4pY4FQtoOFm9GQCH+4R/Zaut WF3j4AD4etvh7Og0EbUlXPNvKYydGHbUEAWsJ8kzCl1IZFAhG7uMNF6u15D7KvRs LIlLj30yMx0/AAWLUsvzz18QWKpByXrB5XpAb0CCzEJeC0RFwI2x6vIWQhxwMm1h jpWeNSLcJT0/asZ1ZmhJESJoBnU3n9bF3lwVKjxJPWoP2m+nNUksTcbQIyMH5S8N fRoLXc+G15lljKtKN4RIFMIvgShfwCeKNcu1wC2546gw/WpFSru74xxCA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehjedgjedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdttddttddtvdenucfhrhhomhepfdfmihhr ihhllhcutedrucfuhhhuthgvmhhovhdfuceokhhirhhilhhlsehshhhuthgvmhhovhdrnh grmhgvqeenucggtffrrghtthgvrhhnpefhieeghfdtfeehtdeftdehgfehuddtvdeuheet tddtheejueekjeegueeivdektdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehkihhrihhllhesshhhuhhtvghmohhvrdhnrghmvg X-ME-Proxy: Feedback-ID: ie3994620:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 15 May 2023 09:59:31 -0400 (EDT) Received: by box.shutemov.name (Postfix, from userid 1000) id 28C0810D1DE; Mon, 15 May 2023 16:59:28 +0300 (+03) Date: Mon, 15 May 2023 16:59:28 +0300 From: "Kirill A. Shutemov" To: Ard Biesheuvel Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Evgeniy Baskov , Borislav Petkov , Andy Lutomirski , Dave Hansen , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Alexey Khoroshilov , Peter Jones , Gerd Hoffmann , Dave Young , Mario Limonciello , Kees Cook , Tom Lendacky , "Kirill A . Shutemov" , Linus Torvalds Subject: Re: [PATCH v2 03/20] x86: decompressor: Call trampoline as a normal function Message-ID: <20230515135928.a46324hlw56pctls@box.shutemov.name> References: <20230508070330.582131-1-ardb@kernel.org> <20230508070330.582131-4-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230508070330.582131-4-ardb@kernel.org> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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, May 08, 2023 at 09:03:13AM +0200, Ard Biesheuvel wrote: > Move the long return to switch to 32-bit mode into the trampoline code > so we can call it as an ordinary function. This will allow us to call it > directly from C code in a subsequent patch. > > Signed-off-by: Ard Biesheuvel Acked-by: Kirill A. Shutemov -- Kiryl Shutsemau / Kirill A. Shutemov