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 914CCC433FE for ; Tue, 30 Nov 2021 14:54:04 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.235216.408131 (Exim 4.92) (envelope-from ) id 1ms4W2-0008CM-Im; Tue, 30 Nov 2021 14:53:54 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 235216.408131; Tue, 30 Nov 2021 14:53:54 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ms4W2-0008CF-Fq; Tue, 30 Nov 2021 14:53:54 +0000 Received: by outflank-mailman (input) for mailman id 235216; Tue, 30 Nov 2021 14:53:53 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ms4W1-0007R0-7c for xen-devel@lists.xenproject.org; Tue, 30 Nov 2021 14:53:53 +0000 Received: from sin.source.kernel.org (sin.source.kernel.org [2604:1380:40e1:4800::1]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 54cec185-51ed-11ec-976b-d102b41d0961; Tue, 30 Nov 2021 15:53:52 +0100 (CET) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 4D409CE1A7A; Tue, 30 Nov 2021 14:53:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08D3EC53FD0; Tue, 30 Nov 2021 14:53:44 +0000 (UTC) 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: 54cec185-51ed-11ec-976b-d102b41d0961 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638284025; bh=ZK02DqHmVPKJFN75jdMuswmo5c0dgylhn9mN1ZGK8lU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aKTSMWnNBJBbQUZCqiYQ9kMNhuZmrRV0gDxm85nt3oOEdAbbxRjjJzG/anoqX/R2F Hxq/yRlsxXzRBBT4tZAD3ZapFZU1VFf+aKuWWkpH0sudNktHXPBziM8aU2JXUcXbL8 RkShgx0WERgo7fdBqbnKmHf+sTMcYqM5c/tXPnlUlZtXsTtXv65tSdfN1ky+EAYp4o e1mAZvXjJhLa+fGDSynzwHCkM5nejs0mlURH8MLK6FWzFWUTNhNUlc6OKMDOXObjvK a34002JmdK4VVu6HcGQVa6IOCp4ZH2CVyFhT3XVI6YguCBgih7YvQ0hqqnBH554/N+ 7p8HQtppI2RaQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Juergen Gross , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Jan Beulich , Boris Ostrovsky , Sasha Levin , xen-devel@lists.xenproject.org Subject: [PATCH AUTOSEL 4.9 02/12] xen/privcmd: make option visible in Kconfig Date: Tue, 30 Nov 2021 09:53:30 -0500 Message-Id: <20211130145341.946891-2-sashal@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211130145341.946891-1-sashal@kernel.org> References: <20211130145341.946891-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Juergen Gross [ Upstream commit 897919ad8b42eb8222553838ab82414a924694aa ] This configuration option provides a misc device as an API to userspace. Make this API usable without having to select the module as a transitive dependency. This also fixes an issue where localyesconfig would select CONFIG_XEN_PRIVCMD=m because it was not visible and defaulted to building as module. [boris: clarified help message per Jan's suggestion] Based-on-patch-by: Thomas Weißschuh Signed-off-by: Juergen Gross Link: https://lore.kernel.org/r/20211116143323.18866-1-jgross@suse.com Reviewed-by: Jan Beulich Reviewed-by: Thomas Weißschuh Signed-off-by: Boris Ostrovsky Signed-off-by: Sasha Levin --- drivers/xen/Kconfig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig index 98b8f32053229..6ae96c12b8819 100644 --- a/drivers/xen/Kconfig +++ b/drivers/xen/Kconfig @@ -206,9 +206,15 @@ config XEN_SCSI_BACKEND if guests need generic access to SCSI devices. config XEN_PRIVCMD - tristate + tristate "Xen hypercall passthrough driver" depends on XEN default m + help + The hypercall passthrough driver allows privileged user programs to + perform Xen hypercalls. This driver is normally required for systems + running as Dom0 to perform privileged operations, but in some + disaggregated Xen setups this driver might be needed for other + domains, too. config XEN_STUB bool "Xen stub drivers" -- 2.33.0