X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fissupported.c;h=45b1c2454eab6bbd81278e17064e19af0ceca9cd;hb=90ceb7b399cf3c1eb8d0c7474bd2498fe62cd022;hp=73bf813b709773546df7349ef9b2e65fd8661a62;hpb=fc84d2d3d5179f3bbbcee0f7e8d8cb155239edfd;p=util-vserver.git diff --git a/lib/issupported.c b/lib/issupported.c index 73bf813..45b1c24 100644 --- a/lib/issupported.c +++ b/lib/issupported.c @@ -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; @@ -44,6 +46,7 @@ vc_isSupported(vcFeatureSet feature) 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); }