libvirt: add virsh function for virsh cpu-compare test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt: Add new test virsh cpu-compare

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