Fix xentop on pv-ops domain0
Hello,
Quoted 7 lines
Xentop encounters error in pv-ops domain0, because the VBD path in sysfs changes to "
/sys/devices" Also delete the macro inxenstat_netbsd.c, because it is not used.Signed-off-by Dongxiao Xu <[email protected]>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