qemu_monitor.py: increase default timeouts

Based on experience and advice we are increasing the default
timeouts. We have seen non intended failures with the timeouts
as they are. Increasing them makes legit tests (migration ones
in our experience) not fail anymore.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
run: Fix error message displayed when -v is not specified

This is a solution for issue #184.

Create the utility function _restore_stdout, so we
don't need to resort to standalone_utils.print_stdout
on error paths, changing all error paths to use it.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt: repair step editor.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
qemu_vm: Making qemu creation module honor cpu_model unconditionally

When we introduced qemu CPU model configuration, we opted
for robustness, so we wouldn't add a cpu_model to the
command line in case it was not showing on qemu -cpu help
text. This is bad because:

1) It was all done very silently
2) This makes negative cpu model testing unfeasible

So let's honor the setting, and print a error message,
so people have a better idea of what's going on. In
such cases, the bad param will be passed to qemu, it
will fail and a VMCreateError will be thrown.

CC: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt: Add get_max_mem function for libvirt_xml.VMXMLBase.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt: Add get_max_mem function for libvirt_vm.VM.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt: Add setmaxmem function for virsh module.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt-libvirt: Add configuration for virsh setmaxmem test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt-libvirt: Add test module for virsh setmaxmem.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>