[RFC,19/73] x86/entry: Export 32-bit ignore syscall entry and __ia32_enabled variable
Message ID | 20240226143630.33643-20-jiangshanlai@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-81662-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2144820dyb; Mon, 26 Feb 2024 07:19:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXbA+nw2RSKybwGH+dTxFu8/84UBM838lVR8LzBN5A1jPAKhptz0oUYjizigAJOeU5ONrjQ7Yu/9pnGicsDZy6fTF7S/Q== X-Google-Smtp-Source: AGHT+IGv88FIE5elpf9djhr5RGut6rBq8/sreIrwSCNs6XsvN1SZC7ndKtjKlW52dLh6DXKSynT1 X-Received: by 2002:a05:6a21:8cc8:b0:19e:a5ae:229b with SMTP id ta8-20020a056a218cc800b0019ea5ae229bmr8196706pzb.31.1708960791538; Mon, 26 Feb 2024 07:19:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708960791; cv=pass; d=google.com; s=arc-20160816; b=EAnIz0i3Cdby1l9iDOxyEhG7wvf988LyBwRRLq39PbejKPM13Ld/n/h/1KoeflU0VR 3fHsjrkUMUx9FllDMcw5P/QDCL429Cvg/H9Rl03jVGudpJWzJYw84Kz1VBfW5n640LwA TH+wg6tzqP5ZaJ3ggPpBqsxhc4bOur1KbWt3IZY0yJXXMq4GAL1LCVH7wMPGjSbO/7mu B3IB93uPYBzQdWubks96PzkzGSLC7coBgN8kkGtp4Bq416IPQAuV+Ljfd5XyBR6VGfGy TWjQOVrqZmFzAoo+D/byQp+u64zAnxcnULsoaZkyJ4pyctvDm63+0I/64kdJo5qQgcby 0u/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=BTFwRy/j+hGc3A0+vUN+d8c3IFpFYgzuXEpZOKFIa18=; fh=aakgU3I4PPK2deshporChzLMJt6KBCsb9WD2VO2Ux3o=; b=C0JB7F7fIhjrHgY+Omu2k6k1BIAN/IhSXzx46xG+6y4FN/lzYiUwO4XxK5SIO4tcmZ 51P6WIw2Af/CTfY9iuOYf/1sN9s+lU8cSFI/SCSJ9MvQQtHGWwqt2foGl9xvdJEBanmI 0IJgnymVE0nWAAbZETP4og11mH0fB+q11/7arEgVCRoLx5xTc5wyzwGHjk9FA8pUQnaT bZW/SIH6uWP1YNtRVSWOo/uu77abr7+G61XXVCwGoaUszSXgnRZhuMbrAiJduZZ4hoyu vPLwNAw+iJo4sHKhzm1eJDuQAzX4BJzsQGwbb8s1S8lzlbgdBKLvaq0tHAO/45DY6eHg 5DlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=frsiMweg; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-81662-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81662-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n13-20020a63f80d000000b005e430f46834si3942011pgh.19.2024.02.26.07.19.51 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 07:19:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81662-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=frsiMweg; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-81662-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81662-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5141EB2B86D for <ouuuleilei@gmail.com>; Mon, 26 Feb 2024 14:43:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1562412BF20; Mon, 26 Feb 2024 14:35:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="frsiMweg" Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1042112BF0D; Mon, 26 Feb 2024 14:35:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708958142; cv=none; b=MYu2Tq/wVe7njJ2s+l+92QTypwi+BlckuAsiWoOt+DdiMJm/H5UYJsqUQzS+0qR45iidpwyB6Ff+bDeCHF+97qYBCDUgRk/Wj0T6292KBH6F4nMzoMnilTNIdtCxoSsBpXlIxmm6DNBnbn9yVJTW6JZ+m316ZYM2QeQsFczZFZQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708958142; c=relaxed/simple; bh=lkPWWNX4CqvxkABoFnNNUXtgtU86hs8RqI86OHed6gI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=sqx+QlnwCliJHknl4xR9xEQYOQdsoFZ2lmH4/EJ39JDyBDD37wVCQJfL3r38gtMPqfzdlt8cDqE1Dw8qp/I7LO9Hm15AQp2oPu64rFqkWRTZ9lsoRbhiZHn5z/sDGu+3Be+XKvrRE40FwfTCAuvj/7kHtmeqexzMAqOdvZJmV6A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=frsiMweg; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6e08dd0fa0bso2686770b3a.1; Mon, 26 Feb 2024 06:35:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708958140; x=1709562940; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BTFwRy/j+hGc3A0+vUN+d8c3IFpFYgzuXEpZOKFIa18=; b=frsiMwegqR48pYel71xccNr85n9qEBuLXgiIKvX3g4Qe1slOER1yHJqjC9SckgQaWT vhzCB8i6CsSNNy+crzUY4uZPRyENqpj1rpmWR0zPAin1UjnPn8qOY6rRMyw0ztXtyI/j lCXYVrf/A512sv5D4SIH6hNs/664YoFGBdQylFiAeVtc5wH441hCE5GpB2mdfvVkU9Un I8wgYinQXtCba4K0EU8vH3AG5WLqj7BDTZ1bhHNh5PU6+HzZW1YsTw7NsaSOIv9cuimH ddNp+e31ZepvBe/7EpPU/GyEr218qjtWFjlD3Ak2scQ6hW2lt7je2aA7KvGxezsnFB4z Yccg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708958140; x=1709562940; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BTFwRy/j+hGc3A0+vUN+d8c3IFpFYgzuXEpZOKFIa18=; b=WjmZVmyb9NGyPQfE7/VOXmcCf78j+xqOIK7LBxh2oF45xeAeXN4UCyYjHIjtNNvwSc 9rbsexLRCP0/8yE4yranYfezkDEBXJjivDwRkPGBQPvO2tn8ePhP36b6pGixGAaFv7Ig IF85vhnXG23rfr4t57oSGQBlfqZISH0ykAL+/5pN6sJJf5si0R/lSa8JOV+Pw+sZqjke mrcRCchy+iJBHUNcRsLOTbed6NIV2jxpXG7+asunrnjyIkCCCvJFhfxGklWjiQ5smETF 3BQJGXtLcT9Pyh9babVEeN/DNg6FTlPXyVMkl4f9LFSzmYggz/CgIW5xIkiApUJ2h8/8 2NIQ== X-Forwarded-Encrypted: i=1; AJvYcCVPOIWkmpUNIIo2ysfq9HJRy50EMEfv6ZAORRBZGcgtiCJH2uft+DRvolvDWzxbkQnHyLFoUORHdKLWAGXN+K8gBIae X-Gm-Message-State: AOJu0YzDQayBtbZihwVKz+ZWF1aN5lRgmXEB6aUGl2H6VuxYBEqi23NB Hv2cQIOTJiDHjTEPjKdlWCiGe7ro0/SMqA5reYFIpQlO4jrTQMKgKR8ke57M X-Received: by 2002:a05:6a21:1014:b0:1a0:e6c6:fa with SMTP id nk20-20020a056a21101400b001a0e6c600famr9611214pzb.7.1708958140321; Mon, 26 Feb 2024 06:35:40 -0800 (PST) Received: from localhost ([198.11.176.14]) by smtp.gmail.com with ESMTPSA id x64-20020a626343000000b006e501303f1fsm3433320pfb.40.2024.02.26.06.35.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Feb 2024 06:35:40 -0800 (PST) From: Lai Jiangshan <jiangshanlai@gmail.com> To: linux-kernel@vger.kernel.org Cc: Hou Wenlong <houwenlong.hwl@antgroup.com>, Lai Jiangshan <jiangshan.ljs@antgroup.com>, Linus Torvalds <torvalds@linux-foundation.org>, Peter Zijlstra <peterz@infradead.org>, Sean Christopherson <seanjc@google.com>, Thomas Gleixner <tglx@linutronix.de>, Borislav Petkov <bp@alien8.de>, Ingo Molnar <mingo@redhat.com>, kvm@vger.kernel.org, Paolo Bonzini <pbonzini@redhat.com>, x86@kernel.org, Kees Cook <keescook@chromium.org>, Juergen Gross <jgross@suse.com>, Andy Lutomirski <luto@kernel.org>, Dave Hansen <dave.hansen@linux.intel.com>, "H. Peter Anvin" <hpa@zytor.com> Subject: [RFC PATCH 19/73] x86/entry: Export 32-bit ignore syscall entry and __ia32_enabled variable Date: Mon, 26 Feb 2024 22:35:36 +0800 Message-Id: <20240226143630.33643-20-jiangshanlai@gmail.com> X-Mailer: git-send-email 2.19.1.6.gb485710b In-Reply-To: <20240226143630.33643-1-jiangshanlai@gmail.com> References: <20240226143630.33643-1-jiangshanlai@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791975270739825673 X-GMAIL-MSGID: 1791975270739825673 |
Series |
[RFC,01/73] KVM: Documentation: Add the specification for PVM
|
|
Commit Message
Lai Jiangshan
Feb. 26, 2024, 2:35 p.m. UTC
From: Hou Wenlong <houwenlong.hwl@antgroup.com> For PVM hypervisor, it ignores 32-bit syscall for guest currenlty. Therefore, export 32-bit ignore syscall entry and __ia32_enabled variable for PVM module. Suggested-by: Lai Jiangshan <jiangshan.ljs@antgroup.com> Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com> Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com> --- arch/x86/entry/common.c | 1 + arch/x86/entry/entry_64.S | 1 + 2 files changed, 2 insertions(+)
diff --git a/arch/x86/entry/common.c b/arch/x86/entry/common.c index 6356060caaf3..00ff701aa1be 100644 --- a/arch/x86/entry/common.c +++ b/arch/x86/entry/common.c @@ -141,6 +141,7 @@ static __always_inline int syscall_32_enter(struct pt_regs *regs) #ifdef CONFIG_IA32_EMULATION bool __ia32_enabled __ro_after_init = !IS_ENABLED(CONFIG_IA32_EMULATION_DEFAULT_DISABLED); +EXPORT_SYMBOL_GPL(__ia32_enabled); static int ia32_emulation_override_cmdline(char *arg) { diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S index 65bfebebeab6..5b25ea4a16ae 100644 --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -1527,6 +1527,7 @@ SYM_CODE_START(entry_SYSCALL32_ignore) mov $-ENOSYS, %eax sysretl SYM_CODE_END(entry_SYSCALL32_ignore) +EXPORT_SYMBOL_GPL(entry_SYSCALL32_ignore) .pushsection .text, "ax" __FUNC_ALIGN