From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Post Subject: Re: [PATCH] Fix xentop on pv-ops domain0 Date: Tue, 07 Jul 2009 00:02:09 +0800 Message-ID: <1246896129.5517.287.camel@localhost.localdomain> References: <200907061534.31677.Christoph.Egger@amd.com> <200907061749.29633.Christoph.Egger@amd.com> Reply-To: echo@echoreply.us Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200907061749.29633.Christoph.Egger@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Christoph Egger Cc: "Xu, Dongxiao" , "xen-devel@lists.xensource.com" , "keir.fraser@eu.citrix.com" List-Id: xen-devel@lists.xenproject.org Hi, On Mon, 2009-07-06 at 17:49 +0200, Christoph Egger wrote: > This patch is good. > The following is going to break xenstat on almost every forward port of 2.6.18.8 (including Andy's 2.6.30 vanilla port): + if (strncmp(system_info.release, "2.6.18.8-xen", + sizeof("2.6.18.8-xen")) == 0) + sysfs_vbd_path = "/sys/devices/xen-backend/"; + else + sysfs_vbd_path = "/sys/devices/"; + I would really recommend considering just using /sys/bus/xen-backend/devices, as Stephen noted. Cheers, --Tim