Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1740960rdb; Wed, 31 Jan 2024 07:46:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IGYquJyujiH/846GnV6uO1ZtGEJtcWxG47kXp78MY8dtDFGDdPTWmOCeBLtQdAMmkhbGhw1 X-Received: by 2002:a05:622a:1113:b0:42b:eae2:1c35 with SMTP id e19-20020a05622a111300b0042beae21c35mr1690340qty.61.1706716012652; Wed, 31 Jan 2024 07:46:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706716012; cv=pass; d=google.com; s=arc-20160816; b=FVIvQqV1qDb5p2B7ckYKkQTPz/KGbAeMDG/LYz6kGcjSZd+gVVcne341EPofJfr/Ry xiU7oJICTjFcUyONEkt4iVC8rMU5AhS9hwhoXRYzL9dDAt/vvJSrM4tdQf0CHT24drPZ Fu1ON91IyucT3BV4+oDs55g5MIz8jbt89pu8ON1ahV8jzkpuuMrZNgY3aDONdF+mpIp9 oqLNDycPCTQIvW31iLOQOAoYwF1aizvlloPWzWSt0MCLkrLr4s2Q/qhgG4oKpLxgMryK USRj8IVzM7A1KRSu4Anq1T15Q+4LWwhyN/Ayvjf7DWBZX5EQ2dgd7/GbvdXlPotSBNuv IPhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XXydYuz5caNhkIACOprtmS7ZI5gn9p9FJa6qDSnlf6k=; fh=1FVe8LGcrka7B21Mzc5CmSg1IfgHITV6X2IucOj7f2E=; b=JZt5IF1ftdPFj56M7j+8hH+MZXGBqvgMDrB+HEMXoKGapSDpmv+e6P0Tvx7NQj8h5P DABYXwMG1hGDcLkapnrYf0DMHY1HQcnAh9PgZ+3lTUn010LsTilvJJvgeZEBAmZVUNI2 pAqzkFSgIMQnnC0zlBwY57jUAvoj4++G21ylQ6epbYVxNIe1kVWnMmsGFHX3okVXImRA puDoJBOaPVgvrmg8Bj1p5Tl1dDO5515bky7JCUPHEKIenqehLD60UcnRl1ScrLaanfCg Os2KZ1KrLaAfjJCKsXbDZsCDI4cUGT7YZqNONPdgNEly9pZ+UMTQ7kalFAMjKH56DXpL 8/hw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YxZxh5pV; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-46734-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46734-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCUw2SLm2NsuK9Fd7gqhsSE6WfR8k7LqFXSsa4Nz+BUZJCosZnIQyARx5oZnXp6Hnjr3e7IE2mmkPvy795DPefu3TJYY5EdSEVcd8QbOKg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z14-20020a05622a060e00b0042aadd56214si5584398qta.92.2024.01.31.07.46.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 07:46:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46734-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YxZxh5pV; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-46734-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46734-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 19C291C22513 for ; Wed, 31 Jan 2024 15:46:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8558129A97; Wed, 31 Jan 2024 15:46:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YxZxh5pV" Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60961128388 for ; Wed, 31 Jan 2024 15:46:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.134.136.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706716004; cv=none; b=MVJJN4Fy9s48xXeBoLfx2wp/MWZZ5Mp4AhunNCQgA4v/5E+JGswn+Ob3J7sLrfriKR+i6r1JGPf9bz89Vv9PaHMz9NgQQ7uXSfo5gL6Psb9SvRVOPkS3OW9mxnPQHLgAsm1c1ib4EJekd9rrrjINFgN7WVUAY7SF6aL8zwh7P8k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706716004; c=relaxed/simple; bh=TIYEjhEm+Q9THJNQ+RQRVyVZX4DEQNHZSWYzF0LI+Ak=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CuwXNRgMW7bf0DtXDPqD18+COXPH+Bu2qiRfmuUCMcZeKUCAHWsD1mJzyLw9OByhuBKVaoBz4wDSDIhhbNIrTN9s+s35FXRNkrsM5pIpbb9sPC7St+0qejCNixQ0QmL7Tcyx7Yx7MTmo7eE0HK7Bn/02eqDgySvW3wreuYRhyWo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=YxZxh5pV; arc=none smtp.client-ip=134.134.136.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706716003; x=1738252003; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=TIYEjhEm+Q9THJNQ+RQRVyVZX4DEQNHZSWYzF0LI+Ak=; b=YxZxh5pVPqosFLAAD7MphbDqPojQeWmV3P0TSZGqGs+JLwJ9C0b549mD AJoAnXY2kGm7L+7YptHQSvbF/LB3VNkaNTtlfOrrKnnuaVScJGE4zKiRu 70TliT2+w6BpfoUaPGZx+VXZ58G3av602SwdJLmu3hk1r4n+Fs/7RnfFY NgiE6ifIjvvG70exoRxq0eET+Vc037Lkladx6gTHJVKP5ofegXYNzG/6b yoGjYptSRowVK99byy5J575tygDCcAnjmugiWQZsP2Q0qJNeuBFCA3Uxe JoWqAPtq5OhDr3Ci5NcdK/xtkX9zDNkEnmOB19GjqCjRX322uqNhX3Gtj A==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="394068820" X-IronPort-AV: E=Sophos;i="6.05,231,1701158400"; d="scan'208";a="394068820" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2024 07:46:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="822605488" X-IronPort-AV: E=Sophos;i="6.05,231,1701158400"; d="scan'208";a="822605488" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga001.jf.intel.com with ESMTP; 31 Jan 2024 07:46:31 -0800 Received: by black.fi.intel.com (Postfix, from userid 1000) id 07C7B772; Wed, 31 Jan 2024 17:36:46 +0200 (EET) Date: Wed, 31 Jan 2024 17:36:46 +0200 From: "Kirill A. Shutemov" To: Tom Lendacky Cc: Kevin Loughlin , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Nick Desaulniers , Justin Stitt , Pankaj Gupta , Hou Wenlong , Ard Biesheuvel , Dionna Glaze , Brijesh Singh , Michael Roth , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-coco@lists.linux.dev, Ashish Kalra , Andi Kleen , Adam Dunlap , Peter Gonda , Jacob Xu , Sidharth Telang Subject: Re: [PATCH v3 2/2] x86/head64: Replace pointer fixups with RIP_RELATIVE_ADDR() Message-ID: References: <20240121182040.GBZa1geI5NxWSslvt0@fat_crate.local> <20240130220845.1978329-3-kevinloughlin@google.com> <733302e0-e8c2-458e-a4b2-dfd10e065036@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <733302e0-e8c2-458e-a4b2-dfd10e065036@amd.com> On Wed, Jan 31, 2024 at 09:30:10AM -0600, Tom Lendacky wrote: > On 1/30/24 16:08, Kevin Loughlin wrote: > > Now that we have RIP_RELATIVE_ADDR(), we can replace the "fixup_*()" > > family of functions in head64.c with the new macro for cleaner code. > > If this series is purely for backporting, this specific patch isn't needed, > right? Since this all works today with clang? That's true. However, temporary things often end up becoming permanent :/ -- Kiryl Shutsemau / Kirill A. Shutemov