virCgroupController: Check the enum fits into 'int'
virCgroupController: Check the enum fits into 'int'

Throughout our code, the virCgroupController enum is used in two ways.
First as an index to an array of cgroup controllers:

struct virCgroup {
    char *path;

    struct virCgroupController controllers[VIR_CGROUP_CONTROLLER_LAST];
};

Second way is that when calling virCgroupNew() a bitmask of the enum
items can be passed to selectively detect only some controllers. For
instance:

int
virCgroupNewVcpu(virCgroupPtr domain,
                 int vcpuid,
                 bool create,
                 virCgroupPtr *group)
{
    ...
    controllers = ((1 << VIR_CGROUP_CONTROLLER_CPU) |
                   (1 << VIR_CGROUP_CONTROLLER_CPUACCT) |
                   (1 << VIR_CGROUP_CONTROLLER_CPUSET));

    if (virCgroupNew(-1, name, domain, controllers, group) < 0)
        goto cleanup;
}

Even though it's highly unlikely that so many new controllers will be
invented so that we would overflow when constructing the bitmask, it
doesn't hurt to check at compile time either.

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>

taget/libvirt,libvirt/libvirt,jardasgit/libvirt,rlaager/libvirt,libvirt/libvirt,datto/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,crobinso/libvirt,VenkatDatta/libvirt,datto/libvirt,jfehlig/libvirt,jfehlig/libvirt,jfehlig/libvirt,jardasgit/libvirt,eskultety/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,eskultety/libvirt,zippy2/libvirt,datto/libvirt,libvirt/libvirt,taget/libvirt,crobinso/libvirt,jardasgit/libvirt,libvirt/libvirt,eskultety/libvirt,rlaager/libvirt,rlaager/libvirt,jardasgit/libvirt,andreabolognani/libvirt,agx/libvirt,andreabolognani/libvirt,agx/libvirt,agx/libvirt,olafhering/libvirt,eskultety/libvirt,rlaager/libvirt,olafhering/libvirt,VenkatDatta/libvirt,zippy2/libvirt,fabianfreyer/libvirt,taget/libvirt,andreabolognani/libvirt,zippy2/libvirt,crobinso/libvirt,rlaager/libvirt,crobinso/libvirt,agx/libvirt,agx/libvirt,taget/libvirt,datto/libvirt,taget/libvirt,jfehlig/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,eskultety/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,olafhering/libvirt,fabianfreyer/libvirt,olafhering/libvirt,nertpinx/libvirt,datto/libvirt,nertpinx/libvirt,andreabolognani/libvirt,zippy2/libvirt