3625668 virLXCControllerSetupResourceLimits: Call virNuma*() iff needed

Authored and Committed by mprivozn 9 years ago
    virLXCControllerSetupResourceLimits: Call virNuma*() iff needed
    
    Like we are doing in qemu driver (ea576ee543d6fb95583), lets call
    virNumaSetupMemoryPolicy() only if really needed. Problem is, if
    we numa_set_membind() child, there's no way to change it from the
    daemon afterwards. So any later attempts to change the pinning
    will fail. But in very weird way - CGroups will be set, but due
    to membind child will not allocate memory from any other node.
    
    Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
    
        
file modified
+17 -7