Now that I think about it i guess it's fine to have it fail in xen_init, but than xen_test should really be something more like http://xenbits.xensource.com/hg/xen-unstable.hg/file/5af4f2ab06f3/tools/misc/xen-detect.c