libvirt.test: Set domain's max vcpu to 2 if it's large than 2

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