libvirt_xml: Support configuring clock element in LibvirtXML.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
perf.cfg: update indexes to compute averages

We just adjusted the title order in the result, so
the avg_update indexes also need to be updated.

tpkt_per_exit 13=6/11,rpkt_per_irq 12=5/10 according
to following columns.

2             3       4              5       6
throughput    CPU     thr_per_CPU    rx_pkts tx_pkts
7         8        9        10       11
rx_byts   tx_byts  re_pkts  irq_inj  io_exit
12           13
rpkt_per_irq tpkt_per_exit

Signed-off-by: Amos Kong <akong@redhat.com>
virttest.virsh: Add wrapper for nodesuspend

Add standard wrapper function in virsh.py for calling virsh command
`nodesuspend`.

Signed-off-by: Hao Liu <hliu@redhat.com>
virt/propcan: Add a update method into PropCanBase class.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
utils_test/libvirt: Add a function pci_label_from_address.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_xml/nodedev_xml: Add virt_functions in PCIXML class.

This patch add a support for virtual functions pci devices.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virttest.qemu_devices: Support aliases in has_device

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_vm: Utilize aliases support in add_pcidevice

qemu_devices support aliases so we can just ask for the desired device.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_vm: add_pcidevice bugfixes

* check params of the desired device_driver instead of pci-assign
* log the fail_params instead of the last used param

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
add support extra_cdrom_ks installation for WinNT6.0 guest

Signed-off-by: Xu Tian <xutian@redhat.com>
update ks to execute finish.bat from root partition

Signed-off-by: Xu Tian <xutian@redhat.com>
Always keep screendumps

screendumps are important, the current
policy of saving it when case error only is
not enough, if a VM network works fine and
case pass, but VM vga malfunction, deleted
them would potential miss bugs

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>
virttest.virsh: Fix API nodedev_list

This commit makes nodedev_list according with other APIs.
(Use virsh optional option name as API keyword argument name)

Signed-off-by: Hao Liu <hliu@redhat.com>
Set autoyast iso as 1st cdrom for url/nfs unattended_installation

For unattended_install.url and unattended_install.nfs,
autoyast.iso will be mounted as 1st cdrom.

Follow Paolo's suggestion, Add code to handle kernel_params
in unattended_install.py

Signed-off-by: Lin Ma <lma@suse.com>
Disable strict host key checking for ssh session

Because of StrictHostKeyChecking=ask is the default setting in ssh config,
If there is no host key for the server, it will show the fingerprint and
ask to confirm, And because of we already set /dev/null as the user host
key database, the ssh connection always waits for the test scripts answers
"yes" for confirmation. So the test scripts will be blocked at this stage.
(unless the option StrictHostKeyChecking has been disabled in command-line
or /etc/ssh/ssh_config or ~/.ssh/config)

Signed-off-by: Lin Ma <lma@suse.com>
Couple of miscellaneous fixes

utils_misc: Need to add parameter for a %s directive in message
            for get_qemu_binary method

utils_test/libvirt: Use 'permissive' not 'Permissive' since the set_status
                    expects the lower case

virsh: Simple typo in comment for net_state_dict() which was copied from
       a similar pool function, but the comment change was missed
virt: Modify return value of virsh.version() function
Update the md5sum for fedora 20 ppc64

The current md5sum for fedora 20 ppc64 ISO is wrong.
This patch is to correct it.

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
data_dir: Add target parameter fo get_deps_dir()

With this parameter, get_deps_dir() will only deps folder
which contains target file/folder.

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest: Update the nic multi queues vectors calculate method

The right calculate method should be 2*n + 2.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>