From patchwork Mon Oct 23 09:09:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hou Wenlong X-Patchwork-Id: 13432542 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 61CF0CDB474 for ; Mon, 23 Oct 2023 09:10:18 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.621105.967178 (Exim 4.92) (envelope-from ) id 1quqwn-0003sk-MP; Mon, 23 Oct 2023 09:10:05 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 621105.967178; Mon, 23 Oct 2023 09:10:05 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1quqwn-0003s2-Iy; Mon, 23 Oct 2023 09:10:05 +0000 Received: by outflank-mailman (input) for mailman id 621105; Mon, 23 Oct 2023 09:10:04 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1quqwm-0003eK-GX for xen-devel@lists.xenproject.org; Mon, 23 Oct 2023 09:10:04 +0000 Received: from out0-196.mail.aliyun.com (out0-196.mail.aliyun.com [140.205.0.196]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id ef275a1a-7183-11ee-9b0e-b553b5be7939; Mon, 23 Oct 2023 11:09:58 +0200 (CEST) Received: from localhost(mailfrom:houwenlong.hwl@antgroup.com fp:SMTPD_---.V5pF1jV_1698052193) by smtp.aliyun-inc.com; Mon, 23 Oct 2023 17:09:54 +0800 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: ef275a1a-7183-11ee-9b0e-b553b5be7939 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047193;MF=houwenlong.hwl@antgroup.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---.V5pF1jV_1698052193; From: "Hou Wenlong" To: linux-kernel@vger.kernel.org Cc: "Hou Wenlong" , "Andy Shevchenko" , "Borislav Petkov" , "Boris Ostrovsky" , "Darren Hart" , "Dave Hansen" , "H. Peter Anvin" , "Ingo Molnar" , "Juergen Gross" , , "Thomas Gleixner" , , Subject: [PATCH 0/2] x86/xen/pvh: Clean up stack canary setup in PVH entry Date: Mon, 23 Oct 2023 17:09:37 +0800 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Clean up the stack canary setup in the PVH entry. For a 64-bit kernel, use fixed_percpu_data to set up GSBASE. For a 32-bit kernel, set up the %fs register explicitly. Hou Wenlong (2): x86/xen/pvh: Set up percpu for stack canary in 32-bit kernel entry x86/xen/pvh: Use fixed_percpu_data to set up GS base arch/x86/platform/pvh/head.S | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) base-commit: 50dcc2e0d62e3c4a54f39673c4dc3dcde7c74d52 --- 2.31.1