KVM: selftests: Remove duplicate guest mode handling
authorPeter Xu <peterx@redhat.com>
Fri, 30 Aug 2019 01:36:19 +0000 (09:36 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 24 Sep 2019 11:37:24 +0000 (13:37 +0200)
commit52200d0d944e473142271773c41f5f490f3a821f
treea66e632b1d123da6c6691e75c18a2f778e7f21c2
parent567a9f1e9deb273a2c02dd18c254208537fcefaa
KVM: selftests: Remove duplicate guest mode handling

Remove the duplication code in run_test() of dirty_log_test because
after some reordering of functions now we can directly use the outcome
of vm_create().

Meanwhile, with the new VM_MODE_PXXV48_4K, we can safely revert
b442324b58 too where we stick the x86_64 PA width to 39 bits for
dirty_log_test.

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
tools/testing/selftests/kvm/include/kvm_util.h
tools/testing/selftests/kvm/lib/kvm_util.c