Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2085854rwd; Mon, 15 May 2023 07:07:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7K2/PaM2jsgmHgRt/uNjz0hRQiC0CDrXhZRxV+wXbCg5Vu5tIGgjsvvt4FLUkwNxOF8G62 X-Received: by 2002:a17:902:b418:b0:1ad:dac0:5125 with SMTP id x24-20020a170902b41800b001addac05125mr12038136plr.11.1684159667025; Mon, 15 May 2023 07:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684159667; cv=none; d=google.com; s=arc-20160816; b=xZCvGGBMyNuYI259A0muk1CPQ1Omv8/FZIf9xFPdXhVzZ7dAvEBqk52C/6dphtRiaH /cmuZK0AmLmhoQred4IOSu/DmVYH98zKusQcyeryHHqPn2rEtPq+r/K7qKsqtdwsriKs 0S0kGUhNZBDkYSeawni5LmVGZgcF5J+8adnOKb2nFbN1TEHXhxUH45NAcAdLAed/UOcK opLLKhLo420wkmBsWgq10scETuc6yFW3XLMPIQ8UQc812DduWkBvc2fPkrCEtSMnLXDM h8HeVX7c5lmbrYl0xzA0sS3E4DiMlm2+kc5iOIsHUgM86hzRNcre+TwZFMqnwH65jsDw IGSQ== 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=wNoygY88afCZk+rYSwxBYyhC2OwuB/Ta5vKCxI/HOkg=; b=Y+ObhCHio6nbBFimTOj+5N6ZqI8PnjwK8XNg8tXpsY68DG6mHmkNtir1suRxPlmT0A kwg1BGRNhV85mzblsxcWbS3UPwHfcD+E3FeQRBzhsw7e/BULetI4zm6QT/84fEC2Ttmv xkxAL+Q0IHigU5MMlxVkz5iHCNATa0INx87WHmhFAO3f27Rpfs6XgoVYluXMZcmRLhSl hPz/1iwsltp1ghk3DHUA3MTO9KrAeMn1J6ueYmry8s1aWMpLYXtr1b1G8cXAENZgyFAS Lu+aIlXwIQcPK6E9CnpCaOOctAOpIxCknt9tAXlQb8BmQ/2xlR+PU5sc/DkqSyVQtfEx gN4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov.name header.s=fm2 header.b=oLHJzTtl; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=gJOaqsgO; 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 h2-20020a170902748200b001aafaf1a917si15203221pll.472.2023.05.15.07.07.32; Mon, 15 May 2023 07:07:47 -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=oLHJzTtl; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=gJOaqsgO; 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 S239932AbjEOOFd (ORCPT + 99 others); Mon, 15 May 2023 10:05:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239956AbjEOOFa (ORCPT ); Mon, 15 May 2023 10:05:30 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E8AD268A; Mon, 15 May 2023 07:05:15 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8CC9C5C01B0; Mon, 15 May 2023 10:05:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 15 May 2023 10:05:14 -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=1684159514; x= 1684245914; bh=wNoygY88afCZk+rYSwxBYyhC2OwuB/Ta5vKCxI/HOkg=; b=o LHJzTtle/7GDwWpas+OOsATuoQ1nsSWhQ089NXzAIwrib5JlWsx0Km/AxUyEJl+C za0wg64+u4AwWguq4dVSwjXnwrYLn2m1oOL5X31KbO5yttZZFi4pcKlTrtLqG6Qy Iez7xAleEZ/w2db58UcCR7Y1IkLa5/Gdj9N3FzK715kqHok0BKYKjZyFDO/D4X5p tGarviqOaDAkTXZ4X6UCDEowTa09HE2iIbAn1q6F4dSrgW49NcF4j10Ukm+zNcKE pRA+aDDwABiKK0JU4yh1lK6f0gZnzPrlMc+UelKz96nVRxa3sHGpKaNYcdrysJkW IO/K1K5UdlgHZJ9jHzTpA== 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=1684159514; x=1684245914; bh=wNoygY88afCZk +rYSwxBYyhC2OwuB/Ta5vKCxI/HOkg=; b=gJOaqsgODjlwSnjVashQdA4IBnCHO NVGn+IcJa4/osYWpe06Hc8+TSSSjU/MM4XFer+WU8PaRo9OLrAViv/kBbUZ8oBS3 sO40qb+MLnuu8lYc1mVVbqyEk4trCgJosQMwy1uAHe58XtZBoC+SP9TsKNReaKhK QfVUab3oi6o8TvkYw8gy3JogpnG8ENPJB79/7hJ2dHqvTdH+/ebRKv0S+hcxxHhp yKOq2T8bIbPNwoEbEKBzwZhQdGiGWHeKc6cA9IuBq8/RLkgk3uwZ5MkhRa7EM+nR iSBl1jBdbW3UNC3fIL5M0JGBxh2c5zb30iuPxvNtvm8HL+052JvMGLqHg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehjedgjeefucetufdoteggodetrfdotf 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 10:05:13 -0400 (EDT) Received: by box.shutemov.name (Postfix, from userid 1000) id 0E02410D1DE; Mon, 15 May 2023 17:05:12 +0300 (+03) Date: Mon, 15 May 2023 17:05:12 +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 06/20] x86: decompressor: Call trampoline directly from C code Message-ID: <20230515140512.pokuznjp257pkhy4@box.shutemov.name> References: <20230508070330.582131-1-ardb@kernel.org> <20230508070330.582131-7-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230508070330.582131-7-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:16AM +0200, Ard Biesheuvel wrote: > Instead of returning to the asm calling code to invoke the trampoline, > call it straight from the C code that sets the scene. That way, we don't > need the struct return type for returning two values, and we can make > the call conditional more cleanly in a subsequent patch. > > Signed-off-by: Ard Biesheuvel Acked-by: Kirill A. Shutemov -- Kiryl Shutsemau / Kirill A. Shutemov