virt: Add a func to get infac count of VM

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