virt: Fix a bug in cgroup module

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #1714 from liyangfnst/cgroup_fix

virt: Fix a bug in cgroup module