Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2085851rwd; Mon, 15 May 2023 07:07:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4OFkIeYdVIer6h49NOMVWzJCHZ28WXCD7tfgAM1xZkEKtBggiyeMzWWEE31iUGhImawl1s X-Received: by 2002:a17:902:7617:b0:1ad:f26e:3a2e with SMTP id k23-20020a170902761700b001adf26e3a2emr7840318pll.50.1684159667031; 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=R47Grwd3cVw+BuSfbbTYqUW9uZFUVu3HdK9767KsgKqcZaelI1WeXKWLJvNvNQVtB2 r8JuMEHxGsFMGcNDkH+yy7Os6ohGMwVLHkntRMp+o8ss+9KAmQpKIPe1bYq1rmvjLP5U 5UzrNnURNnKwpzsq1EdGcuA4xSZNYBTP1iW/0IZ2XbRcQLDALOFgYa4G2HF8o/Sf4oSU uShkCPjp2J62eKFVlv9n1sGZC2X4hozvk7GRbpmKBPn8DC5QP5ilSscGH+/HrGp9MoQc WaxjISsEJwEfcpnTU1qrY+hF+RONdXYYB6unEzGBz7UgUtukUiV9Jh3rA8XTdORCQBQp ilqw== 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=juiNHrUzx0kPifAlLPcVKdoJyC3AmE7OLGyX51c9DvU=; b=CCxJj0yOBbzxcYf5aGCU01aWlO96tPSECuijuMy3Afedw5wM35XD0jWDUJObVn8qcK VRk0RGP0/aXSOJW3pCNUHsgyF0dxUapKdlVDmGcmsS5OhLidoXJaIB9olxoqAUUkCQRg 3Gl6ECXY+XY3SHpsKblMzZn2U1uj9fNX+E8iYBoTBs6wOAoMvTPRONfvWWxv92SqnhBH uny9JwlQXYYXZiV2uMr/yCLJ3IqgpNM1fELzdy0rxD353ZS8htoQG4Urmjua+Jh1ckn6 SZCVJWoS9A0MErRv9EaLAOLgaTr+qV1ItASW/2ikyG8Gzw10AkpsACDbm/7qGByZXQdK 7+KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov.name header.s=fm2 header.b=kJlCZf3H; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=fSvn1l+E; 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 j2-20020a170902da8200b001a6a1ed899csi12355071plx.644.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=kJlCZf3H; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=fSvn1l+E; 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 S239454AbjEOOAz (ORCPT + 99 others); Mon, 15 May 2023 10:00:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239146AbjEOOAu (ORCPT ); Mon, 15 May 2023 10:00:50 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EDCD2128; Mon, 15 May 2023 07:00:49 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8F45D5C019F; Mon, 15 May 2023 10:00:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 15 May 2023 10:00:48 -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=1684159248; x= 1684245648; bh=juiNHrUzx0kPifAlLPcVKdoJyC3AmE7OLGyX51c9DvU=; b=k JlCZf3HpdzCXu1qEjQlf3K302d5suoREVYTdvielGFcRRxsVsoJWAtSNgxGtyJR8 KfTFCD2ma/FEWoZM/i84xr6rEfr8rDN509y6vkH+2RwkIng0WZQd5e3oQU72Wwci RAVUXc3pZngXriyox1AnSJapYb+YR+Xw4T4Lc6p3Ppe7kR1UvGEk7d9Rr+OIwZ5A ++jiuJD3IGZ65U+OlGvyhtfrOp18b9rthHMqffdp7OWtBMpPEqszf8FmxHXOT5qd zO24QjKr+oM/8XhXDir/DvXoI4i/poHcEzKFt77g8MfB+WladJ/TgXE/h+CpNB8F sj161HxifLol9hU7GvXOQ== 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=1684159248; x=1684245648; bh=juiNHrUzx0kPi fAlLPcVKdoJyC3AmE7OLGyX51c9DvU=; b=fSvn1l+ENyyL5InwaJoOLz2tG7yQU YEZs2k9DWIqcCsWJNFCx0/NngDpomHnKe1Pi9dpYMFrKhXLvI9SToF2JWMtWYpmb eAMn4odxEEtzFeFBOG6g1DDdc9sjdELXNLeG3nGQ+06XZPEdP3FejMzBWp1u8C0E 2C2+egF4FCpeOD8hbKgpg1x/RD1JnwWCGt0wOEsf+rVuv1WwScs77q5XOSdesvXo g2GqoZB8zIp8QJSVpcVrNcGYei/CA/YXDOY2RdOqdxLRhWb8XHKcKqFHOOhsah7v OSNOjNxhFwcxz8XKQk2olUC6nY65J4yna4PK7IBkoJVMhqOGUc6K/Fyag== 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 10:00:47 -0400 (EDT) Received: by box.shutemov.name (Postfix, from userid 1000) id 3291410D1DE; Mon, 15 May 2023 17:00:46 +0300 (+03) Date: Mon, 15 May 2023 17:00:46 +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 04/20] x86: decompressor: Use standard calling convention for trampoline Message-ID: <20230515140046.yaxvt462bt6ovew2@box.shutemov.name> References: <20230508070330.582131-1-ardb@kernel.org> <20230508070330.582131-5-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230508070330.582131-5-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:14AM +0200, Ard Biesheuvel wrote: > Update the trampoline code so its arguments are passed via RDI and RSI, > which matches the ordinary SysV calling convention for x86_64. This will > allow us to call this code directly from C. > > Signed-off-by: Ard Biesheuvel Acked-by: Kirill A. Shutemov -- Kiryl Shutsemau / Kirill A. Shutemov