net: remove redundant evaluation

Valid ifname is provided and used in open_tap(), the
evaluation in the end is redundant, just remove it.

Signed-off-by: Amos Kong <akong@redhat.com>
add definitions of multiqueue

Signed-off-by: Amos Kong <akong@redhat.com>
net: add multiqueue support

Multiqueue feature was supported by kernel/qemu upstream already,
this patch changed Autotest to support command line.

This change compat old qemu/kernel, it will still use 'fd' when
there is only one queue.

More information about multiqueue:
  http://www.linux-kvm.org/page/Multiqueue
  linux/Documentation/networking/tuntap.txt

Signed-off-by: Amos Kong <akong@redhat.com>
net: update hotplug tests

This patch just makes the cases work. I will change cases really
use multi_queue by another split patchset.

Signed-off-by: Amos Kong <akong@redhat.com>
virttest.asset: Pass on restore_image value

With the work made on the asset library, we forgot to
pass the force param to asset.download_file(), as a
result the test runner --restore-image flag stopped
working.

So fix the problem by passing the appropriate option
to that function.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu.tests.cpu_hotplug: Fix timeout issue and typo fix

Test may timeout when check guest's cpu after hotplug.
Update the timeout = 60 + total_cpus.

Update the log message when max cpu reached.
Set autotest case timeout to 2000s in add_max_cpu subcase.
run_autotest always timeout in add_max_cpu case.

Signed-off-by: Feng Yang <fyang@redhat.com>
Some fix for dummy_virsh in libvirt_xml_unittest.

(1).add a define method for dummy_virsh.
(2).some small fix to make pylint calm down.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Add getter and setter of seclabel into vm_xml module.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Add seclabel related unittest into libvirt_xml_unittest

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Add utils_selinux in virttest.

changes from v1:
(1).use getfattr to replace ls -Z
(2).use /proc//attr/current to replace ps -Z
(3).remove some error type seems unnecssary.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Add unittest for utils_selinux.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
virttest: Fix pylint complaint of selinux module.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
qemu.tests: Add new subtest to qemu_img

Signed-off-by: Feng Yang <fyang@redhat.com>
KVM-Test: Boot/shutdown rebased image
Signed-off-by: Suqin Huang <shuang@redhat.com>
KVM Test: check the image after image creation.
KVM test: qemu_img: Pre-allocated metadata qcow2 format support
KVM Test: Raw device support for qemu_img test
KVM test: qemu_img add the qcow2 over LVM checking
Signed-off-by: Jason Wang <jasowang@redhat.com>
KVM Test: Add cluster_size_2048 test case.
Bug fix and add error.context in qemu_img.py script
Fix bug that guest start twice.
Signed-off-by: Feng Yang <fyang@redhat.com>
KVM-Test: qemu_img.py: update case with new autotest api
virt: Update 'guest_name' to 'os_type' in all scripts
Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
KVM-test: Update qemu_img commit test command to support Windows
Signed-off-by: Yiqiao Pu <ypu@redhat.com>