virt: Add a func to enable/disable cpu

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
OK, I got your  mean, a good suggestion, will update soon.