From: Ian Campbell Subject: Re: [PATCH 2/5] xen: Add privcmd device driver Date: Mon, 28 Nov 2011 18:00:21 +0000 Message-ID: <1322503221.11846.29.camel@dagon.hellion.org.uk> References: <1322431628-21760-1-git-send-email-waldi@debian.org> <1322431628-21760-3-git-send-email-waldi@debian.org> <1322497613.20646.19.camel@zakaz.uk.xensource.com> <20111128173954.GA6828@wavehammer.waldi.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20111128173954.GA6828@wavehammer.waldi.eu.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Bastian Blank Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, 2011-11-28 at 17:39 +0000, Bastian Blank wrote: > On Mon, Nov 28, 2011 at 04:26:53PM +0000, Ian Campbell wrote: > > I wonder if we could do something dumb like make /proc/xen/privcmd by a > > symlink to /dev/xen/privcmd instead of introducing this cross module > > dependency? > > Sure. However this make a dependency from kernel to the userspace naming > policy. And the xenfs module still needs some sort of dependency on > privcmd, so it gets loaded. > > > The main reason would be to avoid the select since selecting on user > > visible symbols is a recipe for confusion and is generally advised > > against. > > Right. It is just the easiest solution. XENFS could depend on XEN_PRIVCMD and whatever else it needs? > > Perhaps the xen-privcmd.ko should simply call a newly introduced > > xenfs_register()? This would be a nop if CONFIG_XENFS=n and therefore > > the select would not be necessary. If COFIG_XENFS=[my] then modprobe > > will do the right thing. > > This would be not backward compatible. And I'd like to avoid a > dependency from privcmd to xenfs. That's a reasonable goal. Ian.