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>
libvirt: Add virsh net-info command test

New testcase: virsh_net_info.py/cfg
virttest.virsh: virsh net-info function
net_info(network, extra="", **dargs)
key_event_form.py: Rewrite from wxPython to PyGTK.

Signed-off-by: Milan Barta <mbarta@redhat.com>
rv_input.py: Rewrite from wxPython to PyGTK.

Signed-off-by: Milan Barta <mbarta@redhat.com>
tests/rv_clearx.py: Removing clearx

It's a lot better to clean interface from rv_connect

Signed-off-by: Tomas Jamrisko <tjamrisk@redhat.com>
qemu/tests/smartcard_setup.py: Clear gnome session.

Clear gnome session in the beginning of the test.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
fullscreen_setup.py: Changing starting vdagent under root.

Signed-off-by: Vimal Patel <vipatel@redhat.com>
Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
libvirt-tests: Fix some emulatorpin errors

* Backup vm's xml for restoration. or the vm xml will change for
  set_emulatorpin cases.

* Move the test process into a try/finally block to ensure environment
  is cleaned up even if exception raised.

* Fix typo in cfg file causing duplicated test name: s/config/live

Signed-off-by: Hao Liu <hliu@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>
util_test.libguestfs: Support choosing disk or domain in VirtTools.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libguestfs.tests: Supplements for guestmount test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.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>