Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp776621oof; Tue, 25 Sep 2018 04:37:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV601s6xTqMZWq8/JRGo8yEcH+TtsSlyYL2Wh/tkCAPrM5HgdJOk00pEk8rPZmqNnF526bBaH X-Received: by 2002:a62:ea05:: with SMTP id t5-v6mr702955pfh.228.1537875473986; Tue, 25 Sep 2018 04:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537875473; cv=none; d=google.com; s=arc-20160816; b=ei0J6rLG/MATsUguOAIlAYVIgSYALO2rEb9MU3YMSCG940AV51ayKVVWuA23HqTlz+ +nuUp79qE60nXzvukmXaJkkvd1Qhv4hHKhIY3TEpsp3DvsO3swKWIb0LPPCUo4t6RIDn cbsJH9gEpQmLG9p3cN28m+0FSc8tf+6pBJ36eX8bHEBDyz7/UpEHoPRYkgVvC8e2l/Ma Ff7Un35wpAZCH6ZhEp5s9PiciQmhzZtUcIf3eCLksMC/t0t9vJySsok2U2n5QRS+BgK+ BR8Ubxr/FxJWochRWhaD5q0FiAWCAxr7tnExwh7gxr3+shSWnE+yz7neeRPwEzqimsBC 3/bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=31SLiP4UwANgmEvkVjx1GNSM/O3fw/xJF5X/bSbwIpY=; b=B3OhCplzYbcDrLtpvSLWiFpBoxDN89/7UZk1KVD20Ps4VVdCyGGpov4R7sCaQAweeG B2zbNxYFNMv3vHLSXoR3evH/WmZEo+TQs2YDJ9+VOqVWrO0bazzDAqtz3BFOYlVYIFp1 /EXo0sm1lwpmlABD+yTDTOqpCJwYj5hTm0yJ0TJkea0LxQsadN101Fn2jRktdiBfF/C8 A1YL+kcTdErodTMfZgolrsQzWWb8E9Q23GSj+TGIqShJLLtQX0SS+aIeq6bnYA6mqaK0 R7DkxkGUvDHB2mb9WsMCUF8w/YVq8rz941m0w4f3Au1bL3INEjqLXfpt+0W++4Q1oWW2 lOFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BpZGCWvQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id x3-v6si2218296pln.232.2018.09.25.04.37.36; Tue, 25 Sep 2018 04:37:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BpZGCWvQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728126AbeIYRoZ (ORCPT + 99 others); Tue, 25 Sep 2018 13:44:25 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:43847 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726435AbeIYRoZ (ORCPT ); Tue, 25 Sep 2018 13:44:25 -0400 Received: by mail-qk1-f196.google.com with SMTP id v18-v6so3660865qka.10 for ; Tue, 25 Sep 2018 04:37:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=31SLiP4UwANgmEvkVjx1GNSM/O3fw/xJF5X/bSbwIpY=; b=BpZGCWvQ7HXfAMIItzBDOAb+SddBm9Hlfo0svYDHTTx8XfH9vxGkmTHm4xWVmJelID ngZ2xMdK1XJlJhYtnTH5bmndmxHIK258x9h4COjcxPMojWohuorawdOGpzkqpT+9Wa+S 2Ydg8DSRUMUQKPIi4nne5IZUXM65GQNaoHANrr2Ebmy+jIIJC1v1pqVIUdRucZZ/iYRf Un42CuA5o7UG+iOp+6aDi5l1X76s64pJ4gDH9mtPXDDRItzOPHRMSX23ApjgNQYg/zTQ HwouMr7oMgMxZvD3ug31QofTz67qyiASXool9aDDytcqOAmkua9FDUFH2vxZknnnUasC 5Jyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=31SLiP4UwANgmEvkVjx1GNSM/O3fw/xJF5X/bSbwIpY=; b=qVdL7LzgBMair0vOL1wkSw4lteSP+X/8uFVXqfhRPy04h4V9ObhFDnDIMmaufy0Nho XqLAnHBvkv/Pj4TDLjhumAWNircv+76JzQnru8PKNmwWsMGUmBLExT5NE7qbDAhdSCyK oFpoCpbfk+YIoI9IOWesuusSZWw2CUSkX9IRSniKLBpswj1lTNFju9ayPTnrvXuIXv1W N/trrDX3+FH3UAr2hM38ThYW2lbYysvv0sk5ymX1+ZFTdKLxFjgxr/ty8lALn1JU/llS 9bdbctav7DuAEZnfamz5QMkk4cvjKmCvXIIzDG646t0+NSEdIa6KmKSwm2zsHYQFMxKd dCFA== X-Gm-Message-State: ABuFfogGTIKPMQ8lThaO4//HbFoqrHW/5/XOTn76mB5363wpc6eDnO2s STp0k6IXsKF0avF4boACklU= X-Received: by 2002:a37:14d4:: with SMTP id 81-v6mr355936qku.201.1537875436716; Tue, 25 Sep 2018 04:37:16 -0700 (PDT) Received: from pm2-ws13.praxislan02.com ([2001:470:8:67e:1d94:9684:2890:372c]) by smtp.gmail.com with ESMTPSA id t29-v6sm1356221qkt.44.2018.09.25.04.37.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Sep 2018 04:37:15 -0700 (PDT) From: Jason Andryuk To: Boris Ostrovsky , Juergen Gross Cc: Jan Beulich , Jason Andryuk , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] xen: Make XEN_BACKEND selectable by DomU Date: Tue, 25 Sep 2018 07:36:55 -0400 Message-Id: <20180925113655.4501-1-jandryuk@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org XEN_BACKEND doesn't actually depend on XEN_DOM0. DomUs can serve backends to other DomUs. One example is a service VM providing network backends. The original Kconfig defaulted Dom0 to y and it could be disabled. DomU could not select the option. With the new Kconfig, we default y for Dom0 and n for DomU. Either can then toggle the selection. Signed-off-by: Jason Andryuk --- v2: omit superfluous "y if" per Jan Beulich --- drivers/xen/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig index b459edfacff3..692e82fcad1f 100644 --- a/drivers/xen/Kconfig +++ b/drivers/xen/Kconfig @@ -101,8 +101,7 @@ config XEN_DEV_EVTCHN config XEN_BACKEND bool "Backend driver support" - depends on XEN_DOM0 - default y + default XEN_DOM0 help Support for backend device drivers that provide I/O services to other virtual machines. -- 2.17.1