Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1564392pxb; Tue, 26 Oct 2021 11:20:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztLnmcLBzQ5lni33a6BngroxzSAhDscYbe/rNwJskPNjOjspS77NNwXnWat58R4FcCjqlk X-Received: by 2002:a17:902:f548:b0:141:4eab:b9ac with SMTP id h8-20020a170902f54800b001414eabb9acmr6218787plf.30.1635272404156; Tue, 26 Oct 2021 11:20:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635272404; cv=none; d=google.com; s=arc-20160816; b=rr/qfcUY5U4/fLwc3GTj7kmphAW7bkSPnZejlOdao/sJ5YHu7JqGNAqTR97KL4UcdM SmfyHn2ac7gu6NupL+iSvxpxGBYYLf0ytL3IUWomB+tGPaTRsRNniIC6Zrk+kmAV+ttv xbUQmfh67jV5SDLuBAl/DrD7T2XMehDGQq4UyhIIG6DJPjPb+RiXzRZ6PmXqbYdGnh/t SpkOk330bjywIh9GdyFy0MWY14vM4Q4Emv/3oYXuLbHsE5jES/a5IcyxhTbtR6twG8t8 bdZNSehLwS4RQ1yOs7z5x3fu+HZ/GbykNGTwktQWSAQkG3Gy6WcKHvqj4+wrxb9oBv1C tMKg== 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=SOPQxdDADkqVebsy53kKaQcgUttVFbbUeW7VGO9LoGR/sB8JJTi62TiFzkNBDa0IxB hQQSQdDzHX8xRppZUWSAVfhyeCH5LCDPylocNFchDFrQpUjnofzgJNUeXlmWOMbW+dXd GtDxqy0fn/CVmdGrqO4MC3GsyPaKUebIdemqZW4f067IP+PWWZJrWYkcxvlzub07tlzn HIkyusafaDDKVgS/xVEra8I6dY3TR0lrsbRzXlAkvMnQXOCrnoYrzyQqauMv1ir9Wi32 aN07BG23rVGa9rcEujC63UWJw3LIqmeGHOFSaCR4GP7rNOSYoqeKVoamB+7IPkf8cZfP beTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=p03n0whK; 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 z10si33909932pfh.9.2021.10.26.11.19.50; Tue, 26 Oct 2021 11:20:04 -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=p03n0whK; 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 S230123AbhJZOhX (ORCPT + 99 others); Tue, 26 Oct 2021 10:37:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235152AbhJZOhW (ORCPT ); Tue, 26 Oct 2021 10:37:22 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44532C061745 for ; Tue, 26 Oct 2021 07:34:59 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id q187so14349494pgq.2 for ; Tue, 26 Oct 2021 07:34:59 -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=p03n0whKOz84QBUHv41illdfN4SadONs3aFGoMFyBSoTfxVDRv4LnbL1KrKdZcY57k /KBFo5uvIuZTUYNrm92z47rTZys21plIbk3+thQuzIZ0WUnuVB1HEXycDjVmy+Z9MEoU 3vnVokIS/t9pOF3VKfxCts0ued0PrihimWMmnMNUtfqbfVRreqQSVK8lpqWY6P0cohj/ N90mwQEMtrfO+2XfoOZ77YwnYz4HOPJyamuiKCm2WKhwKmxJ9lgpgrr8Q7HbGdpuZdin 4q5JGObSHgIjqxOthnqAOaVDH8kqTGnyJfNt26TG+e8f+sPMNz9wHWs4whDPjZlE1Y2o tq3w== 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=GYVrm+39yaMCobAm6BA0wnCXvvMimVOV720euDGz13s0xIron9/kD2dehlRAyfxIrT Wi5tnVzVctf+WH0/IZTYJCKxhMO4A6w6tjTl89LBkcT7K0DF6o09NbDLpzdWR0wdNTj2 kOn+VLt5czCA3hUGRnUXXej1qm+LzWsLq9V/GV6B7bhSKz3ek+n6OtXjXfe56E14zGtz wgOVpwUKEFhIHS080FjMEAsnv9x+NUHJwaZO6oM74hJEsqDlcDK21pRiYTw9ZF1Ji6s9 ejvrX64lQHN6ZpuqGGsztsb5gw+CuKn26V1anpdpHe8nh1Z3kIE6/GSi3yV1ry9DlL1C DOiQ== X-Gm-Message-State: AOAM532LnVbTAGG7nEA15IJ7yoqZXAXAdbpCtzqj70q2sdJjyRdkx0RJ XLm+lfH4PkaaetvGqRjWx0sMQvpkCfY= X-Received: by 2002:a63:7247:: with SMTP id c7mr19058848pgn.365.1635258898732; Tue, 26 Oct 2021 07:34:58 -0700 (PDT) Received: from localhost ([47.88.5.130]) by smtp.gmail.com with ESMTPSA id a3sm25829631pfv.174.2021.10.26.07.34.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Oct 2021 07:34:58 -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 , Dave Hansen , "H. Peter Anvin" Subject: [PATCH V4 26/50] x86/entry: Convert SWAPGS to swapgs in entry_SYSENTER_compat() Date: Tue, 26 Oct 2021 22:34:12 +0800 Message-Id: <20211026143436.19071-1-jiangshanlai@gmail.com> X-Mailer: git-send-email 2.19.1.6.gb485710b In-Reply-To: <20211026141420.17138-1-jiangshanlai@gmail.com> References: <20211026141420.17138-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