On Monday 29 September 2008 15:17:28 Matthias Koenig wrote:> + * First check if we are running in a para-virtualized guest.> + */> +ÂÂÂÂÂÂÂif ((!access("/sys/hypervisor", F_OK) ||> +      Â(!access("/proc/xen", F_OK)))) {> +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ/*> + * For now we are only dealing with para-virtualized> + * Linux guests (para-virtualized on Xen). So, this must be> + * Xen based.> + */> +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂxen_pv = 1;> +ÂÂÂÂÂÂÂ}This code does not appear to consider the possibility of running on real hardware. (And to be pedantic, if /sys and /proc are not mounted, strange things will happen.) &:-)ÿô.nÇ·®+%˱é¥wÿº{.nÇ·®¶)ÿ)îàíèjg¬±¨¶Ýjÿ¾«þG«é¸¢·¦j:+v¨wèm¶ÿþø®w¥þ࣢·hâÿÙ