libvirt: Add some test cases for virsh cpu-compare

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt: Add set_cpu_mode() function for virsh cpu-compare

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