From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [Xen-devel] [PATCH 1/3] xen/mce: Add mcelog support for Xen platform (v2) Date: Fri, 25 May 2012 16:23:09 -0400 Message-ID: <20120525202309.GA14524@phenom.dumpdata.com> References: <20120522092354.GB18578@aftab.osrc.amd.com> <20120524103023.GA27063@aftab.osrc.amd.com> <20120524162605.GK27063@aftab.osrc.amd.com> <20120524191039.GB28338@phenom.dumpdata.com> <20120525180303.GB27280@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: "Liu, Jinsong" Cc: Borislav Petkov , "linux-kernel@vger.kernel.org" , "Luck, Tony" , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org > What I mean is, > If mcelog.c create /dev/xen-mcelog (say, minor=226), native mce.c would create /dev/mcelog (minor=227). > Under such case, may we create a symlink in /dev/mcelog pointing to /dev/xen-mcelog, without touching native mce code? and how? I thought the idea was that we would create /dev/mcelog using the same major/minor. However if you want to create /dev/xen-mcelog and then create from the kernel another file in /dev that is name 'mcelog' and is a symlink to /dev/mcelog - that is OK too. Obviously you will also need to disable the generic '/dev/mcelog' (and that can be done in the same way as lguest does it).