KVM: selftests: Create VM earlier for dirty log test
authorPeter Xu <peterx@redhat.com>
Fri, 30 Aug 2019 01:36:17 +0000 (09:36 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 24 Sep 2019 11:37:20 +0000 (13:37 +0200)
commit338eb29876b9e571273175f167fcd58d9441ac8e
tree5ee9b39e5fbadaa27689555277eb223723ad1801
parent12c386b2308344f2ce8819ad11aab466166f276d
KVM: selftests: Create VM earlier for dirty log test

Since we've just removed the dependency of vm type in previous patch,
now we can create the vm much earlier.  Note that to move it earlier
we used an approximation of number of extra pages but it should be
fine.

This prepares for the follow up patches to finally remove the
duplication of guest mode parsings.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/dirty_log_test.c