virt: Add a func to get infac count of VM

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
OK,get your point, will close it.