qemu.tests: migration_with_file_transfer.py:Add migrate between vhost and non-vhost

Add test case: migrate between vhost and non-vhost

change from v1:
Add 'vhost' parameter for vhost configure,
and release 'netdev_extra_params' for other extra usage.

Signed-off-by: Golita Yue <gyue@redhat.com>
Acked-by: Feng Yang <fyang@redhat.com>
Acked-by: Feng Yang <fyang@redhat.com>
Acked-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests: migration.py: Add ping-pong migration support

changes from v1:
 - remove some debug info.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Acked-by: Feng Yang <fyang@redhat.com>
Acked-by: Amos Kong <akong@redhat.com>
qemu.tests: Improve stress tests in local migration

Get all the autotest support test as a guest stress running the
guest. And Make the local migration also support ping-pong
cycles. Add a stress test deamon to make sure the stress test
will running in cycles while the guest ping-pong migration.

change from v1:
- Use BackgroundTest() to start the deamon thread instead of fork.
Because of the child thread from fork() will get wrong status of
the stress thread.
- Modify this patch to suit for the newest tree

change from v2:
- Fix one IndentationError
- Add more infomation about migration round

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Acked-by: Feng Yang <fyang@redhat.com>
Acked-by: Xiaoqing Wei <xwei@redhat.com>

Fix issue local variable 'guest_stress_test' referenced before
assignment.

Also delete some while space in black line.

Signed-off-by: Feng Yang <fyang@redhat.com>

Stop guest stress thread finally

When some exception raised during migrate process, guest
stress will run endless, This patch sets the stop bit in
"finally" block and sets a timeout in "join()" function.

Changes from v2:
 - Update stress_stop_cmd to "killall autotest".

Changes from v1:
 - Kill background stress process in guest.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.test: Make exec migration support migrate gzip in local

Make the migration.py support migrate gzip in localhost

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu: Fix login_timeout undefined variable error

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu: Exclude JeOS from some of the new migration tests

As they require some capabilities not available on our JeOS.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>