Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp598219lqi; Thu, 7 Mar 2024 06:31:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVzq4T1wExr5C//XTkLKgWRVGvtWptFqMhGMkblOUDmXToT5zpRc2rfKvo58uOcSG7kU6KqtJBIgSTMnuN2ll/arC+vNTFZT4QdXHqp9Q== X-Google-Smtp-Source: AGHT+IFr8G2VZ0tQzYdCzgQ73/lw2abMO4wkG4JYYlAjYOcNaoQiYrpGEfkoYUU4fTYXPUt3fZ4L X-Received: by 2002:a17:906:11d3:b0:a45:b944:675a with SMTP id o19-20020a17090611d300b00a45b944675amr342910eja.2.1709821899820; Thu, 07 Mar 2024 06:31:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709821899; cv=pass; d=google.com; s=arc-20160816; b=cRT1BB5blv8MSz425AZlF01xKhBteMKep88O4TcDXKRpqPezl3TeTOhQj5QoxpFqSt oXeFYCk/dZfOMJHgHpGZYPpPt8XEGfALAjliakw1+zpehLAzCOd5k5FC1iO9krvuihDO cfe0gv7iDQuQ8JEJgKZcBXZm3bi9rllYcjPrwDN6sScMbSw7oXL2YQL8ZBXfgse7E5Vc bWbSqckfqIaMGTe3e4Ywv9cO5WH6x2V3PAR/CgWE97trOJVNioyEf9jCVljzHKCngzbi 4pmgeacl0NcR4NYWcqnSME+cAFhyWbwkF2KpO+mcc1b1A/ucoTkezJsIg9UiGP204y9U RkPA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=e+6SKyQ7N12OXHoPi73bVvaX3Vl8PL50OxbEZ/LFW1I=; fh=oQv9v3bR6MaLscsX1iWB7C6KZycLab6mQxLdc0DclbE=; b=hi5t3ZxYT0RSmzn2diW8HQL4cmFC2v7+psr3NE4o5iIOk09/4rIQK0H/jSsGozc56W 5KeBnr96dUje6fx4bqoxor3S6zGF32ZzTr2zl1MsDjKHcVmMULLpiZcUs2BVsAm5+7WC smPIppiaCTpabdMQmFZXK+KAUIfArkVy9rz27HBzi67aAMOQl6G0FwPCxMwEpD0pL+Vs Ki/tJwLBunHdlH+QRbfRcnrAnzsl3FZNX8d0qBczGOvT9cEdsDi8cdwknmfDBF8FOq9L /RjzdRqPDxZUOQxCHrH3ZWsSX9tAkftIO3BALIlnDaOfnNTMQs2lBDd57suVfFRW+NxW zcGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=gd3VD6pP; arc=pass (i=1 spf=pass spfdomain=flex--ardb.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-95736-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95736-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k23-20020a170906579700b00a449027ce94si1920418ejq.682.2024.03.07.06.31.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 06:31:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95736-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=gd3VD6pP; arc=pass (i=1 spf=pass spfdomain=flex--ardb.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-95736-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95736-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4DF241F265B3 for ; Thu, 7 Mar 2024 14:31:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A23051E898; Thu, 7 Mar 2024 14:30:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="gd3VD6pP" Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3992912D775 for ; Thu, 7 Mar 2024 14:30:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709821845; cv=none; b=Ln7F+dSPcNy6R3Tffyr80ZnDQkt/QRvVwOnAO87s0iDGOn6AdjD4w3fXtPe3VbPRY50Yyqdg/M0jhUqeGpEX0tYyJJQk20XMWK5ZWrGqIlv45LU5v+J+beKstHVgwm/5YCf/RFDLFdi7EMj3HzhY3viU72qkAp8Eg2yOx3aaQbg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709821845; c=relaxed/simple; bh=UTuLmMTS04YQv+1kV2RLF+kAKJaw1Twbwpr8WP2B/6U=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=vBFXLjz01BiPzzQBhAvkReV7Ase/Z6PRF+wviqeHpVzd9sfjvc0YijLobaOnvS6txfumHnOYS5zwkNQV1O6uRGPaBCLU2CjEtt5LQcz6vYqZXfJmhN6fl24lHWJwjMisZxU7BAJCbJPAhNqc/FPfb0Kz+/8QM/dksKlXYrp3ytY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--ardb.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=gd3VD6pP; arc=none smtp.client-ip=209.85.128.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--ardb.bounces.google.com Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-412fb99c892so5594385e9.1 for ; Thu, 07 Mar 2024 06:30:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709821842; x=1710426642; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=e+6SKyQ7N12OXHoPi73bVvaX3Vl8PL50OxbEZ/LFW1I=; b=gd3VD6pPxFroOyhxv8HFLwkgdqh5eEjWy9Om+VnTQAFsEKnVlB0okS8IU2v4rtBJsD vafnRwBKK/dgyxsuqyiwaNtAo8iPlMAWXAl4ewBVcGir+6O4R5vr/SPDa929/+SH5QcD 7gwak5Ayoat1vuyYRu9cU4LdhIxSkrm1Nf+5jB3OUg2tD8jXB1LJj1bbKmm7x1g8D7fJ 5DZl7n6Khr5b6FjFaxjoNKFDGCoY3vzgarESETT3GXBJTDHPS2eRVc/V3JFH6N8IAi6W fX0tWmPWteprDKmDROYnXUHAgWmN+MNIo/gwNyz8UxbnRHyDtDVJ77vD9gD8D3og3bmP D0OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709821842; x=1710426642; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=e+6SKyQ7N12OXHoPi73bVvaX3Vl8PL50OxbEZ/LFW1I=; b=CN8C1apwh96rBC9NEZiv5mdHmFlcFFthqruIh/nJIHv0mjw9huEAzGL1/FgaCk6BK4 1qoxKOTKE7YgzmsoDFM5kn3fysb1ZBwLrv0ZykpZJ8yk2Y7I53y4hJ8xBZDXLX6pq+iU 6CSTOFSzqz1ZRqE17z+KDxgRobppqiFf1So7x63orIB2TsGPmtCSeJaOCSeHXtWMC5N6 zzQBVzQMxMWjYWOA81Z729uM4ta/VictvnPS9L8dLYNnzQFtEDWB9pkmnzz8k4i9kM/5 FoTkDf2pOhRlxXtNgslCxQILVc8RgaoiRpBJtYVXDFL9i8Rz08E+RwzyvCHwY5DwYHVF 21wA== X-Forwarded-Encrypted: i=1; AJvYcCXqG4WPHzlxcxn16FjMxD5NBAf16b/XAq2LZhfsS5wuB+OrStAWJAItAwak44tpsg5AnONTU67NT1euNLhV0bI4DizaqKzDITWJLgmj X-Gm-Message-State: AOJu0Yxp4DZhgQ22rA5b60nbvPsvFiZuSTMam/R7gYbk8rtvUi9dWvR5 EhDiO3P3XqjA9wzxCYCHLVyTj3brgu1RnoIUsXlqHC+kL8LT7tv1fcE5QqmRTmfrqnaryA== X-Received: from palermo.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:118a]) (user=ardb job=sendgmr) by 2002:a05:600c:1c92:b0:413:1:d3d0 with SMTP id k18-20020a05600c1c9200b004130001d3d0mr65437wms.8.1709821841046; Thu, 07 Mar 2024 06:30:41 -0800 (PST) Date: Thu, 7 Mar 2024 15:30:30 +0100 In-Reply-To: <20240307143027.206179-6-ardb+git@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240307143027.206179-6-ardb+git@google.com> X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 X-Developer-Signature: v=1; a=openpgp-sha256; l=969; i=ardb@kernel.org; h=from:subject; bh=1Qx3edR+eJlGvR23RsXAVTdVDicMghSti/wS9GzIfSQ=; b=owGbwMvMwCFmkMcZplerG8N4Wi2JIfXl+bbuAoMXr7hmHdxZx/IqM9J3b2ftuks3BAz7vwUKb /+wdWN+RykLgxgHg6yYIovA7L/vdp6eKFXrPEsWZg4rE8gQBi5OAZjIhiZGhjc5Wx2kxF/rL3o6 U0m2/m+aPYeKrHm/4prT9/T2RPmo7mP477bsrmV2p17uQ8azh0NmP+bOMdiZaKyxWH3C/EfeUVM ceQE= X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240307143027.206179-8-ardb+git@google.com> Subject: [RFC PATCH v6.10 2/4] x86/xen/pvh: Move startup code into .ref.text From: Ard Biesheuvel To: linux-kernel@google.com Cc: Ard Biesheuvel , Kevin Loughlin , Tom Lendacky , Dionna Glaze , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Andy Lutomirski , Arnd Bergmann , Kees Cook , Brian Gerst , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" From: Ard Biesheuvel The Xen PVH startup code does not need to live in .head.text, given that its entry point is not at a fixed offset, and is communicated to the host/VMM via an ELF note. So move it out of .head.text into another code section. To avoid spurious warnings about references to .init code, move it into .ref.text rather than .text. (Note that the ELF note itself is not .init and so moving this code into .init.text would result in warnings as well) Signed-off-by: Ard Biesheuvel --- arch/x86/platform/pvh/head.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/platform/pvh/head.S b/arch/x86/platform/pvh/head.S index f7235ef87bc3..0cf6008e834b 100644 --- a/arch/x86/platform/pvh/head.S +++ b/arch/x86/platform/pvh/head.S @@ -20,7 +20,7 @@ #include #include - __HEAD + __REF /* * Entry point for PVH guests. -- 2.44.0.278.ge034bb2e1d-goog