virt: Add option to shutdown func

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

virt: Add option to shutdown func