]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4871f3f0ea8ea5f77b3a4473e8d57c0cc8bd327c
treea66e632b1d123da6c6691e75c18a2f778e7f21c2
parente9d17eded99f1cc3f3366a729538a9b488aa2b02
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
b5b60e8457 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