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: 13432545 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74068C001E0 for ; Mon, 23 Oct 2023 09:10:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229606AbjJWJKA (ORCPT ); Mon, 23 Oct 2023 05:10:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbjJWJJ7 (ORCPT ); Mon, 23 Oct 2023 05:09:59 -0400 Received: from out0-196.mail.aliyun.com (out0-196.mail.aliyun.com [140.205.0.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FD1398; Mon, 23 Oct 2023 02:09:56 -0700 (PDT) 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; 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 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 Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org 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