Skip to contentSkip to conversation

Fix xentop on pv-ops domain0

PATCH Steven Maresca 1 participant 1 message Jul 6, 2009

lore
Share & tools
lore
#0 lore raw

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 in xenstat_netbsd.c, because it is not used.

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