virttest.qemu_vm : add function to get vhost threads

This patch add a function to get vhost threads