Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1630634ybd; Wed, 26 Jun 2019 22:09:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3X4clvZAqAgXxmKATKUktLHNBg5oa4Zq+tA8/AAO6kEPYiVEx60IGj8w4aPosrAB9/A/M X-Received: by 2002:a63:fb17:: with SMTP id o23mr1832976pgh.362.1561612141996; Wed, 26 Jun 2019 22:09:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561612141; cv=none; d=google.com; s=arc-20160816; b=Hy+nasc8Vbgw8puFGKSmHqOo+bBbYVkQr7e/f5pUgn5kjLDKTAgE9zYuMkZqwQk0hh 6WTiFQ7Mc53RSf4TFomCDXxfLP16LzWL9XMEZFp3eih3roBHVhOV7V1puzGRl/6+xsaw IJe3c9uWiKTm621NIDH9dWcplts8i5sfE5KBO/EGgpCrK/5CvIOgS4eB01zqmqRAZuSw kLXLXEYICWfM85R1BBcTeYAfBJcTKoSd0Pyun0/L79rkLrDLcZ+6sGLOtQMUGLPO2sBe E6mZbUlLFHxfwMOWJjHPuDaPMj7GGSHwHFj+2c6FndR9Ne1xRx7JfD+/lXNtO32kjF/U 9q1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=LxtWbSA42KCKrWgbSirgEvTlsgYPJ9lIFnLVn1tED/0=; b=C+RhQ6K9vgTYh+hgIs5ZjlZbiIi653xAprPmzjrKSUTRpg4IsPwJP9t1P2sRaS4EGS qJGXNbgSpid6aqg/g/by5yY+/cPTYBN0Wo2MHzIF14kI0mnoI/7dRLTlwsb6SYXDdOkH nROGocN+TDmr7GBKFaDDDKowze6jtIIOWnfd+it8TL003EEKGstuMD9e1EpuzOZm93ri ZGfa3Kv/vlWtjr0d+iHhIvf0guiekVdA1t7tEm4AdNxoDkT7wiO5Nr7jD7cuBn2TL1Dp NJDvHIWnHkdNy6fXDP0AO7c6RQGAz4CT96hIjLfXBMylmGepF2ODS5E+CPkdm9SgMnS7 S82g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si1086774pgk.383.2019.06.26.22.08.45; Wed, 26 Jun 2019 22:09:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727140AbfF0FIg (ORCPT + 99 others); Thu, 27 Jun 2019 01:08:36 -0400 Received: from mga04.intel.com ([192.55.52.120]:46663 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726578AbfF0FIf (ORCPT ); Thu, 27 Jun 2019 01:08:35 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2019 22:08:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,422,1557212400"; d="scan'208";a="162522642" Received: from lxy-clx-4s.sh.intel.com ([10.239.48.10]) by fmsmga008.fm.intel.com with ESMTP; 26 Jun 2019 22:08:31 -0700 From: Xiaoyao Li To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" Cc: Xiaoyao Li , Fenghua Yu , x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] x86/boot: Make gdt 8-byte aligned Date: Thu, 27 Jun 2019 12:55:25 +0800 Message-Id: <20190627045525.105266-1-xiaoyao.li@linux.intel.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When loading segment descriptor, it uses lock implicitly. Align gdt here to avoid potential split lock from crossing cache lines case. Signed-off-by: Xiaoyao Li --- arch/x86/boot/compressed/head_64.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S index fafb75c6c592..6233ae35d0d9 100644 --- a/arch/x86/boot/compressed/head_64.S +++ b/arch/x86/boot/compressed/head_64.S @@ -659,6 +659,7 @@ no_longmode: gdt64: .word gdt_end - gdt .quad 0 + .balign 8 gdt: .word gdt_end - gdt .long gdt -- 2.19.1