]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9c238f8784aee057122f47a73d6b9a252afcf140
tree5ee9b39e5fbadaa27689555277eb223723ad1801
parent6f046285b412cedf5f0b16830869f2c25240db5d
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