virt: Add option to shutdown func

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