X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fissupported.c;fp=lib%2Fissupported.c;h=685909451219e431e05d2c517d14b0395b74475a;hb=dffca81b18d54e1ea6db1213b85e1741bd85861f;hp=e1176de67c3a4d795358744de65ad2a1fcef6600;hpb=4db12f3b28c20f8b013c27c6cf0fbae5b336732f;p=util-vserver.git diff --git a/lib/issupported.c b/lib/issupported.c index e1176de..6859094 100644 --- a/lib/issupported.c +++ b/lib/issupported.c @@ -28,6 +28,7 @@ vc_isSupported(vcFeatureSet feature) { int ver = vc_get_version(); vc_vci_t conf = vc_get_vci(); + int linux_ver = vc_get_kernel(); if (ver==-1) return false; if (conf==(vc_vci_t)-1) conf = 0; @@ -53,6 +54,7 @@ vc_isSupported(vcFeatureSet feature) case vcFEATURE_PIDSPACE : return false; case vcFEATURE_MEMCG : return ver >= 0x00020306 && conf & VC_VCI_MEMCG; case vcFEATURE_DYNAMIC : return ver < 0x00020300 || !(conf & VC_VCI_NO_DYNAMIC); + case vcFEATURE_BME : return linux_ver < 0x0002061a; default : assert(false); }