virttest.utils_libvirtd: update libvirtd_start and libvirtd_restart

These two functions should wait until libvirtd is fully started. To achieve
this, I've introduced new function libvirtd_wait_for_start().

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
virsh_setmem: fix setting the memory into original size

We should restore memory into original size by using the original_outside_mem
instead of original_inside_mem because the inside mem is lower than the outside
mem and because of the virsh setmem command is setting the outside mem.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
virsh_setmem: fix the checking of the result value

There are some tests that have different result on older libvirt and
newer libvirt. The right condition is that the new libvirt should not
fail, but the older one should fail. By this patch we follow this
behaviour.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
virsh_setmem: fix the config file for old_libvirt_test

The domain name and memory size have to be defined to PASS the test
on newer libvirt.
virttest.virsh: change the order of creating the setmem command line

It is possible to call 'virsh setmem --domain test 524288' but the current
code create 'virsh setmem 524288 --domain test' for the right parameters.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>