virt: Add a func to enable/disable cpu

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>