From nobody Fri Nov 22 01:50:00 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1727865080; cv=none; d=zohomail.com; s=zohoarc; b=CvezgG8IrkNgw6HrVZvLR5WrHb0vv1KaeE5wpQpe0imlgrMJRbU95hEnoTelGHYejYLqZ5dC+0Jw3bdxLfvrRWEs7ir9hYfRTxUuA1D5e3OrtzK97pp9wsnhmLS3l9ixGWsJ7ZDjKQer5mr02Or0U+2Zzt51oLadV5BV5pnNlNU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1727865080; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=5wGju39Hmhcid0JvQ/mxq0sNrfsihG52p86ltXcpmmE=; b=HIPYfE7ZiOpCsR+Mz+COanUPB9SXk6cqwnIhNdB3+f5IohnjTH0TC/GLuZMttvN5N1mw/gXylJyhYyQzjIYV19cXH6vugcFcLlEbPztPPCtZEHqZbzXH4yQ4Zl9E0Rdu0VakFemMbdyWLRKVeh4JWm3dY9ug7NIa3uSdWXenAjQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1727865080038564.4902382518482; Wed, 2 Oct 2024 03:31:20 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.808696.1220684 (Exim 4.92) (envelope-from ) id 1svwdH-0002ZK-4G; Wed, 02 Oct 2024 10:30:59 +0000 Received: by outflank-mailman (output) from mailman id 808696.1220684; Wed, 02 Oct 2024 10:30:59 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1svwdH-0002ZD-0S; Wed, 02 Oct 2024 10:30:59 +0000 Received: by outflank-mailman (input) for mailman id 808696; Wed, 02 Oct 2024 10:30:57 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1svwdF-0002Z7-KL for xen-devel@lists.xenproject.org; Wed, 02 Oct 2024 10:30:57 +0000 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [2a00:1450:4864:20::533]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 685baa3b-80a9-11ef-a0ba-8be0dac302b0; Wed, 02 Oct 2024 12:30:56 +0200 (CEST) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5c896b9b4e0so4829332a12.3 for ; Wed, 02 Oct 2024 03:30:56 -0700 (PDT) Received: from andrewcoop.eng.citrite.net ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a93c2945f2esm840491666b.117.2024.10.02.03.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 03:30:54 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 685baa3b-80a9-11ef-a0ba-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1727865055; x=1728469855; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5wGju39Hmhcid0JvQ/mxq0sNrfsihG52p86ltXcpmmE=; b=cOjJrCg3ACN4/Bo0I7i8stYbe+Lotov1QjKNlhknQf7CXFLlMWhEMmGGFNifSPL6gm iNn642zNoBiUn4LZ0Mgv0mO+MCkxKQvITgpECLTvYsdVCzOxrskwPEdaAc9Zygao1Niv TZQiyYcIXQqX9IxHgDnB7McrT5rudoJmFEClg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727865055; x=1728469855; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5wGju39Hmhcid0JvQ/mxq0sNrfsihG52p86ltXcpmmE=; b=wNupMz3JfR6HtCWQa07PAQS7dE7O28bvOpSoxv6gfBRN1Lh+QbAJUvmn/1ZUpIhYVJ K2gLC/e3ER4+m75zjbTPVuRYPwiytBUWPh2v/DYYKkW/f7uM1IKotKp5wFcKUke2XU8p 58xf7MHtkvzx3g+M9UHIgEgTj/XrPnGwdI1tzbsJP5hPJ1pbRqSOrWCNZDcaq7dVYfum OsST2rpKoLgDh7afRrl0q9A/7z6Pe6eUoDpoYG26wKw03BY9v65FpYGOH5QwocFpJy3X QPOrjniB9+/hxAx4bcpu/2bCgb5sxfo4eyCq8ONaYO+NYvbLstfpoyokKnp/xarPR88w DoRQ== X-Gm-Message-State: AOJu0Yx6p5ErM/VjImfxsWX1u9lf7XbWpYer/hDXMbigNKkCEUqFHSld SZTwqYVCrsYezAdrM+1r2QYmGCZ47LKTOClNvZ7eqB+onY8Mz83pLgDuZS0/n12y8FVEUfNztqx fgPo= X-Google-Smtp-Source: AGHT+IFSYEW9xCt3tR2WKTM4I5ZMGDYARk/8qxPUmTem2hQOOjjnA+ooG1GRWuwe9193xsaYEt0O4g== X-Received: by 2002:a17:906:4fd0:b0:a90:c710:6f3c with SMTP id a640c23a62f3a-a98f824e957mr275880766b.19.1727865055324; Wed, 02 Oct 2024 03:30:55 -0700 (PDT) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [PATCH] x86/kexec: Separate code and data by at least 1 cacheline Date: Wed, 2 Oct 2024 11:30:52 +0100 Message-Id: <20241002103052.1797237-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1727865081373116600 No functional change, but it performs a bit better. Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich --- CC: Jan Beulich CC: Roger Pau Monn=C3=A9 v2: * Rebase over metadata changes. --- xen/arch/x86/x86_64/kexec_reloc.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/arch/x86/x86_64/kexec_reloc.S b/xen/arch/x86/x86_64/kexec_= reloc.S index 9f40c80d7c4b..50ba454abd48 100644 --- a/xen/arch/x86/x86_64/kexec_reloc.S +++ b/xen/arch/x86/x86_64/kexec_reloc.S @@ -19,6 +19,7 @@ #include =20 #include +#include #include #include #include @@ -174,6 +175,9 @@ FUNC_LOCAL(compatibility_mode) ud2 END(compatibility_mode) =20 + /* Separate code and data into into different cache lines */ + .balign L1_CACHE_BYTES + DATA_LOCAL(compat_mode_gdt_desc, 4) .word .Lcompat_mode_gdt_end - compat_mode_gdt -1 .quad 0x0000000000000000 /* set in call_32_bit above */ --=20 2.39.5