Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4086417pxb; Wed, 13 Oct 2021 20:38:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJa9RyuPF3cSJjKsTtf1WLbDCKXtsIaQJHI0pxu78GE+BMiDtppT47sjn/imPwWGc3XNfq X-Received: by 2002:a17:90b:390d:: with SMTP id ob13mr18249765pjb.50.1634182701616; Wed, 13 Oct 2021 20:38:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634182701; cv=none; d=google.com; s=arc-20160816; b=lglFaXc0H8zxnPGVdjCxeMJosmmi+5pcg+np2FLbRnHczs+Rma0NgpDxcFFCJWQqSn OI/yWUUvzLSW3CfQqtUZ5JRhHWIkPOm1CCIDDoMxMFYJAFJasbVZEDPp7JziwemNeD4S R4umY/y1LphEJW0OmXjIVDDNzvY1sk1chhk8/xAVsCOB567j74eTRDai1ZgHO57Z7hy/ 7/ze4H3efsJNylG3SWqQVlbKvUzLOIW+Mk2g6gtoc98RV/5WzfqThKCXI2/lSKLcOFKW DuQpV/n05BJ9WtMVV33lYbRVMuNQdA2vJ56e1XRebaepvfo6v+n5JMo33ve4l6VjDekz Zq8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Lwz3W6gdRhlQ67BdKOZO6Xlc6cjt/VXhoMM+nLKwRyk=; b=qtgC+QBCE2fWpeAtBtO3Ta+NFbf6N7h9gJmAUr4LtYiuMRB+faPKzBamhUxhMUjr+R TKyt0WTs6qnkwgFbPknbISGH4lUGV8BwFvyxDEGFbH5qko7ltvODceuwrwvV0LyuTuGB 5Y996RZRZu9I/DVfFGG0DgSGtsE9V7uftLnqKMaKy3oua6wLQg4Uxolt8QdoQe91um9m MM3356idzaEr+FTHd8RRodqPKFxibiXuRRId7R87LPj6iRr1ooaCgYWA50mbBb5VdmGZ 3QgUs/pgTk+1mX+lIrrWTSBrK7LDkL6byBlFNlBX23brlW4IV3sCReON8wSoq6+QFEYI 8BVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q+YvSeKX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 67si1841476pfe.369.2021.10.13.20.38.09; Wed, 13 Oct 2021 20:38:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q+YvSeKX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230313AbhJNDip (ORCPT + 99 others); Wed, 13 Oct 2021 23:38:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbhJNDil (ORCPT ); Wed, 13 Oct 2021 23:38:41 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EA6EC061746 for ; Wed, 13 Oct 2021 20:36:37 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id x4so3208579pln.5 for ; Wed, 13 Oct 2021 20:36:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Lwz3W6gdRhlQ67BdKOZO6Xlc6cjt/VXhoMM+nLKwRyk=; b=Q+YvSeKXVPe1e1nhwpt3i3iqRXP04p5DTP9+BX/agT2WglrZU7zOrb8uD+c9RoTa7q 7eQNHvCkwpDQM6QtVkchgK3CJLa94XqQa+bT1EUUnIYwfYX4PwggFMSR7HsWnLzSjvWC JdzFbHayV/Y8q5Mcnbwuhla0jIuhocUQ5ia+wc4FCT68h5n9TRQ1Onc2+KNXedxGFds1 Y09uWOqF30+QrM64TYr4XeBFxJWM2QzbPvbiJucKIMs8io/SzIuJFD33oSiXQNwQh3YK D7KZ09ijLGOp1ff49qFpluKMVkvmUptStu52dWzz0G2EXJa0PEU2g9KEGMjzjeFZ7Jcs UIVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Lwz3W6gdRhlQ67BdKOZO6Xlc6cjt/VXhoMM+nLKwRyk=; b=m4ooW/7qA14mUB2G8/vJI7Ltfbu1qFMh/sheLHcUwGdfSRaBaZ2lsEne2TS+Wel7Vx Ym/uECFZcy4iITa0yNU2azT8yslw8BISVdnJnFuBNCQZfglAPtohmT89NjgQ+HP11XQo AdFHEr9jynovApouDHDaguicf4uFWM337F8mrmHYdbPw+kQf58+aV+h0/ZPmqf3CJeI6 FxVSuJnZHpj9H/zLFbhUxtmy57goClYuDDiUkNGFj9Dw6dCUkstqt+WQpLYMfRS7w0ex QSJYQZJiUbLoMZv6Ze7kadysWBCvB2nQpF8K+pOU4zlEI8yoitfG3oGOrGgP8Cl5sXWd L5Pg== X-Gm-Message-State: AOAM532B4wKo4vfDU/89vRvEEjy9ZJ0NfArUu38APWlr7t8Z58hUvRve ur/nFVaePKD1xwdq3s1bwHGhV4joyY8= X-Received: by 2002:a17:902:ab50:b0:13f:4c70:9322 with SMTP id ij16-20020a170902ab5000b0013f4c709322mr2772708plb.89.1634182596874; Wed, 13 Oct 2021 20:36:36 -0700 (PDT) Received: from localhost ([198.11.178.15]) by smtp.gmail.com with ESMTPSA id me12sm2542121pjb.27.2021.10.13.20.36.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Oct 2021 20:36:36 -0700 (PDT) From: Lai Jiangshan To: linux-kernel@vger.kernel.org Cc: x86@kernel.org, Lai Jiangshan , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" Subject: [PATCH V3 26/49] x86/entry: Convert SWAPGS to swapgs in entry_SYSENTER_compat() Date: Thu, 14 Oct 2021 11:33:49 +0800 Message-Id: <20211014033414.16321-21-jiangshanlai@gmail.com> X-Mailer: git-send-email 2.19.1.6.gb485710b In-Reply-To: <20211014031413.14471-1-jiangshanlai@gmail.com> References: <20211014031413.14471-1-jiangshanlai@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lai Jiangshan XENPV has its own entry point for SYSENTER, it doesn't use entry_SYSENTER_compat. So the pv-awared SWAPGS can be changed to swapgs. Signed-off-by: Lai Jiangshan --- arch/x86/entry/entry_64_compat.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/entry/entry_64_compat.S b/arch/x86/entry/entry_64_compat.S index ad20302246e4..0b9661edf652 100644 --- a/arch/x86/entry/entry_64_compat.S +++ b/arch/x86/entry/entry_64_compat.S @@ -49,7 +49,7 @@ SYM_CODE_START(entry_SYSENTER_compat) UNWIND_HINT_EMPTY /* Interrupts are off on entry. */ - SWAPGS + swapgs pushq %rax SWITCH_TO_KERNEL_CR3 scratch_reg=%rax -- 2.19.1.6.gb485710b