X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fissupported.c;h=685909451219e431e05d2c517d14b0395b74475a;hb=909fa999c0180aba479959080bd434ad98930c49;hp=e1176de67c3a4d795358744de65ad2a1fcef6600;hpb=4e63a3343f7f5a4ac9f6d18bac1ad51b5cfd042d;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); }