From: Steven Maresca Subject: RE: [PATCH] Fix xentop on pv-ops domain0 Date: Mon, 6 Jul 2009 10:50:40 -0400 Message-ID: <7e9718f20907060750y62b8545eu23a44ec7ba87d693@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: dongxiao.xu@intel.com, Keir Fraser , echo@echoreply.us List-Id: xen-devel@lists.xenproject.org Hello, >Xentop encounters error in pv-ops domain0, because the VBD path in sysfs changes to "/sys/devices" >Also delete the macro in xenstat_netbsd.c, because it is not used. > >Signed-off-by: Dongxiao Xu > >Best Regards, >-- Dongxiao The patch you've provided explicitly checks for a .18-xen kernel; doing so runs the risk of breaking behavior on every forward port after .18. This is quite fragile. It is my suggestion that, instead, we might utilize the patch Ian Campbell suggested some time ago. See http://lists.xensource.com/archives/html/xen-devel/2009-05/msg00299.html That patch is a small tweak: #define SYSFS_VBD_PATH "/sys/bus/xen-backend/devices" Luckily, this change satisfies legacy .18-xen, pvops, (and even older .16-xen kernels), Xenstat - while useful - is brittle enough as it is, so keeping things generic would be best. -Steve Maresca