X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fissupported.c;h=7314af66d6d5c274b9a82b9d80e1da56f1eece4c;hb=a741f6faf2baae1e823d334012f6a09e6a1bda51;hp=2d2a630f227ffb6c15bd5249c26383e68dee9990;hpb=3b34449070c0846fdc49436d1edd5916512f1644;p=util-vserver.git diff --git a/lib/issupported.c b/lib/issupported.c index 2d2a630..7314af6 100644 --- a/lib/issupported.c +++ b/lib/issupported.c @@ -1,4 +1,4 @@ -// $Id: issupported.c 2247 2006-01-18 23:35:54Z ensc $ --*- c -*-- +// $Id: issupported.c 2589 2007-08-16 03:06:50Z dhozac $ --*- c -*-- // Copyright (C) 2004 Enrico Scholz // @@ -26,8 +26,10 @@ bool vc_isSupported(vcFeatureSet feature) { - int ver = vc_get_version(); + int ver = vc_get_version(); + vc_vci_t conf = vc_get_vci(); if (ver==-1) return false; + if (conf==(vc_vci_t)-1) conf = 0; switch (feature) { case vcFEATURE_COMPAT : return true; @@ -43,6 +45,8 @@ vc_isSupported(vcFeatureSet feature) case vcFEATURE_VWAIT : return ver >= 0x00010025; case vcFEATURE_SCHED : return ver >= 0x00020000; // todo case vcFEATURE_VNET : return ver >= 0x00020001; + case vcFEATURE_VSTAT : return ver >= 0x00020103; + case vcFEATURE_PPTAG : return conf & VC_VCI_PPTAG; default : assert(false); }