svirt: fix some bug in svirt.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>