libvirt: Add test module for virsh cpu-baseline

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

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt: Add test module for virsh net-destroy

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt: Add test module for virsh net-dumpxml.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt: Add test module for virsh update-device.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virttest.qemu_vm: Make boot and bootindex to work correctly

This patch will fix wrong boot setup when set 'boot = on' in cfg files
for cases need more than one disk.

When 'boot = on' set in cfg files, will first check if qemu supports
bootindex. If it does, we will use bootindex which start from 0 and
will increase 1 for each image. You can also set the bootindex in cfg
files. If it doesn't, we will setup the first image to 'boot=on', other
images will set to 'boot=off' which is the limit of boot option in qemu.

Also remove the duplicate boot setup line in add_drive()

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Merge pull request #363 from liyangfnst/cpu_baseline

Add test for virsh cpu-baseline
qemu.tests.cfg: Update usb tests config

* Disable usb_nodev and usb_host on RHEL6 host
* Limit usb_audio to RHEL7+ host.
* Use human monitor for usb_hotplug test.
* Limit usb_hotplug test to RHEL6+ guest.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Acked-by: Feng Yang <fyang@redhat.com>
qemu.tests.usb_storage: Get block device real path before using it

Some guests (eg, RHEL4.9) can't mount the usb storage device which
path contains quotation mark, thus this patch make test script
try to get the real path before using it.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Acked-by: Suqin Huang <shuang@redhat.com>
qemu.tests.cfg: Specify usb hub vendor/product id for RHEL6.3

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Acked-by: Feng Yang <fyang@redhat.com>
qemu.tests.cfg.usb: Disable min/opt_io_size checking in RHEL3/4/5

These guests don't support these kernel option, so disable them
directly.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Acked-by: Xiaoqing Wei <xwei@redhat.com>