qemu.tests: update max_memory to keep guest from oom in ksm_base

As the scripts will use some extra memory in guest. So include that when
calculate the max memory can be used for test.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests: Remove unreadable codes from linux console in seabios

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest: Record command output for compare_image in qemu_storage

Record the compare command in debug file for further analyse.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests.cfg: Make floppy_test support Windows guests

As already have the command for Window guests in guest-os cfg files,
remove the only Linux in floppy_test.cfg. And the mount_dir is
a parameter only for Linux guest. So remove the force requirement
for the parameter.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virsh.emulatorpin: fix the way we get a cgroup path

There is a proper method in virttest.staging.utils_cgroup called
"resolve_task_cgroup_path" which is the best way to resolve
a cgroup path for current vm and cgroup controller.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
qemu.test: make set_link test support multiple queues

This patch make set_link test support multiple queues.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
qemu.test: Add vhost_net zero copy test

This patch add vhost_net zero copy test

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
qemu.test: add qemu device options check

This patch add a test for qemu nic device options check

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
virt: Fix filesystem type in mtab don't have to be same like fs in mount cmd

example:
   mount -t glusterfs server1:/vol_test /tmp/gmount-dMZ4hf

   cat mtab
     server1:/vol_test /tmp/gmount-dMZ4hf fuse.glusterfs rw,...

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Allows get_net_if filter interfaces by state.

Adds possibility to filter network interface with
if_state == state (UP, DOWN, ...).

Signed-off-by: Jiří Župka <jzupka@redhat.com>
share.cfg.guest-os.Windows.cfg : Modify the regex of e1000 Description

This patch modify the regex of e1000 Description for windowns guest
nic_hotplug test.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
virt: Fix import error when AUTOTEST_PATH is relative and work dir is changed.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
shared.cfg.guest-hw: Update pf_assignable and vf_assignable configure to fit framework changes.

pf_assignable and vf_assignable variants only works with nettype = bridge

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests: Add sr_iov_sanity new test case.

Signed-off-by: Feng Yang <fyang@redhat.com>
virt: Adds support for filesystem backend to storage.

backend could be glusterfs, nfs, ...
Only gluster fs implemented now.
Necessary for gluster testing.
virt: gluster split create and get path functionality.

It should be possible get gluster volume path without create
gluster volume.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds support for qcow2 backing file.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds support for check disk in storage with native support (gluster).

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: env_preprocess adds support for image backend.

Gluster and iSCSI storage are special because it is supported
native in qemu-kvm different way from other storage backend.

-drive gluster://server1:0/vol_test/f19-64.qcow2
-drive iscsi://<target-ip>[:<port>]/<target-iqn>/<lun>

other backends are firstly connected to system filesystem and
then used through the file path in VM like normal file or
uses other method like p9.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Change config files to use image_backend config.

Signed-off-by: Jiří Župka <jzupka@redhat.com>