virt: Add a func to enable/disable cpu

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Agree with you, I forget the negative testing :(. OK, will update.