Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp202347lqr; Wed, 5 Jun 2024 03:36:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVsCW8SmqBNwfUmpVd60NsFCIoKRuKIdWmKyEnirSJ4oOXt/z5nTPUrHv9ybsZiQ8cZhwk/Nz8+bg2GXxlzHz4y9CB664+TLklWEqNQOg== X-Google-Smtp-Source: AGHT+IHxJz66MohYvH0I/JU2SHLV1gdi/r4FZMUMnsWUXKmpjqr1ydZh/UWGoAGiN+USG0reBnir X-Received: by 2002:a17:90a:f606:b0:2ab:87c3:d12c with SMTP id 98e67ed59e1d1-2c27db02c64mr2188323a91.2.1717583819364; Wed, 05 Jun 2024 03:36:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717583819; cv=pass; d=google.com; s=arc-20160816; b=egDwPo6SJgUTl7lrEPxsclgXDPXZf7U1KaCD19YVAQOY0smNwq/sMoSziTsDaFv3a0 eRbftgns70GhRyj8EXuOrapE+XsFGNvby5HxfG6eK/3WG6VDpBhgifngG7OZcmv6LLgo LLcOAePM5lDZ+VUE5lOqn4vaneFUOFq1CWJygcmITFPI2nEmqUfbgztvD3gnq9FFfaC0 r2bIH9zVfjQEL1hEGcTtADUZUVkMTCM1JhsFs+z75FRo2gHvWtH+iBJtnjUrxi9H1Ctd UBIf0P4UfqhI1WwSwoFwhRCF/3UM4XZrRGLjP9XN9ocxsByair6cSNwfSgtndsv86bpl GjAg== 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=SaQVPc8Js1wP4O8HHMzP5AA9E820c7Zwn1k4LiFnsGA=; fh=zxfDiYlkfv+WF8KFkp1261dtzJADCr+bpxK/EX19kUo=; b=I5D1+8F3HA7OvOZL0tzZY1RlBBZnx+P4xY1v0Hs56cpEy2dbnp5DBu6MuRCxSgiLqS 3jB9Gs62VK4wZNgY6Je/FLxpfEvn/fHXcKiOx7LzfuIxEbCkh/GT6q+GoWQCxvgvWfxy YyrXnwzRm5hb9pppwQVTtLTod8cHRKirwbZpDVWtg2hh2hGxn0e+Q3xtuhmlAp66PWhq pu/7H/TrIQM5CxtSBBDXGkzqScL88h+49eYaEkf0shmFi9fohb6h7EHbORp7qh8hoE01 2yh54/xsrgfnbP4B5z0fKNGf66fM4+xxpyOS7pLWtvtTwnGDFiikDAnu4GtbsJxsmcCs Q4MQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=FKLvI9rM; 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-202207-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202207-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2806bc93csi1013669a91.110.2024.06.05.03.36.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 03:36:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202207-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=FKLvI9rM; 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-202207-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202207-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5A0E6283469 for ; Wed, 5 Jun 2024 10:36:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF2321922EE; Wed, 5 Jun 2024 10:36:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="FKLvI9rM" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (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 8C1A0191496 for ; Wed, 5 Jun 2024 10:36:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717583786; cv=none; b=OKxOHU8qQee9mCMWyaOlBTKGp4s4YTF+g0AnmWSzMRWjrMdZet5J68wl6/tkspHhip/Mub03ysUKgw8C2p+/Cz6r371iavqFR45mjvuIqEM9u5Kva/4zwE/afb7jMCgQRByGh+e8/27wNWX6Ilzi1jma6RLeCwkb/gdJUqmzoks= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717583786; c=relaxed/simple; bh=M/7mE8s2/w1kNQr5K+bEsNkgkzo1HaC4j+bCLXz3T1s=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=jhGOCnoFVlvN59Rfznhjod3W6W7BMToKR+fRG6JNnyBnBSlOOJohK6W3vXunL2ZrM+WSjGi6j4FECF+zDUn0ilrZPDbodtCj+M18ec6pvQyRv2gtna6HvbUqJKhXeU523XNIacgcSl7xrOleEt5yhxcaExhIw9k0G8xZA8sk08o= 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=FKLvI9rM; arc=none smtp.client-ip=209.85.128.202 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-yw1-f202.google.com with SMTP id 00721157ae682-629638f1cb0so86001897b3.3 for ; Wed, 05 Jun 2024 03:36:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1717583784; x=1718188584; 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=SaQVPc8Js1wP4O8HHMzP5AA9E820c7Zwn1k4LiFnsGA=; b=FKLvI9rMGdqvNpsoUBOAPGf1OIXPLcIMYv8TX0cmBUdzaHExMglfdFd7ITNzbXMcq+ ySDAbUGi+tRV4cheJYRTFtErA8CQiLS2zRTpaIFMHG7jQ0jWxpbS1Tn3ePOHGWVpiIXb RTpH8ZlV1K+FH9+xCPEomnXg9qbXzmqBUXeYwtmll/oGBz0dy8BsfONY8hujbrfydGQD C6HNQJC1U6K7Rx+rL587oUw7ucPoZvFKOnbaQneFY1aQ/0VW03N91/o3tys9mTbyfq9E +14lM9dytLeCi8LDjhYP5fJCSEVoUGTvg5bVSBXo7NkkjKyRsCLNk46mnqqGSCf8rMOk 6Hxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717583784; x=1718188584; 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=SaQVPc8Js1wP4O8HHMzP5AA9E820c7Zwn1k4LiFnsGA=; b=vv8F50fbKOGpbKqlOJrG6tr4SsS29S1SSS/c+OFmBlaCNkWZidHJgciq5JalyYpZfl DBJ1OWkIH93ce2Mu0cGx7LPDyAiqAcnm0rchS8J8ph6XIyJxmtAd/i+C5VV5z4jc7Bf3 pMC6Zf2uP2loN+5rzY71uVdINZ9p8HfWVhd9VtZAETZWOJi3AjZs4Y5Li28y4kkKuRq9 nB7m3xae668qOnwhiUXJ0Mqy6GHVz+RG1N8Xrt5eylNQzhsezTqLnA5xXOb45v904UnI qhcucANR6xJoBSkgzbLpthW1S8q2S4gpdiCcbN0SFfm/AC/bqsSBkG/VXgEzNPbAoOQE 1CcA== X-Gm-Message-State: AOJu0YxEEm57nt/hJGHmgNPmhHVH53eP7XIorjse4R4YtiQvT12rGYP8 Blkxtidzh/zqCKbTbznDbN64zIEH6VLJee1ciqcEA4eRkQgj8o8Ss/BoT8MCh4ayAy2EPcGjDXm nzOuh7TLXXrEKfQmcam6Gfmaqe3MJ1IvJxFRPR82mZkpVtF6UK0I0p37jwn+y/9rn8Nk8G0Y1Z4 7KKs6Qhbrndx0OQWX8q6M7/lXjaVLu5A== X-Received: from palermo.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:118a]) (user=ardb job=sendgmr) by 2002:a05:690c:4c06:b0:61b:e689:7347 with SMTP id 00721157ae682-62cbb4a6b86mr4009457b3.2.1717583784569; Wed, 05 Jun 2024 03:36:24 -0700 (PDT) Date: Wed, 5 Jun 2024 12:16:13 +0200 In-Reply-To: <20240605101610.2824747-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: <20240605101610.2824747-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=1WOxhSKXdPYsCJ6Ne8n2/N04btpqDMdNzicWbyeAr/c=; b=owGbwMvMwCFmkMcZplerG8N4Wi2JIS3B6u2e5kUrJjT+LT7Ls8XoLnNBTN4tvS1arx5tC30Rr s2vl8rZUcrCIMbBICumyCIw+++7nacnStU6z5KFmcPKBDKEgYtTACYisIiR4ZfRxvCuR7eKVyt0 biyY5ypRYZynVSIzQ8Hfb7bhh7J+cUaGS792zpyi/e7V73VzA235VW80ie0rYvkWuPJA4NbgPcL GXAA= X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog Message-ID: <20240605101610.2824747-8-ardb+git@google.com> Subject: [PATCH v3 2/4] x86/xen/pvh: Move startup code into .ref.text From: Ard Biesheuvel To: linux-kernel@vger.kernel.org Cc: Ard Biesheuvel , Tom Lendacky , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Andy Lutomirski , Arnd Bergmann , Kees Cook , Brian Gerst 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.45.1.288.g0e0cd299f1-goog