KVM: selftests: Add "-c" parameter to dirty log test
authorPeter Xu <peterx@redhat.com>
Thu, 1 Oct 2020 01:22:41 +0000 (21:22 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 15 Nov 2020 14:49:18 +0000 (09:49 -0500)
commitedd3de6fc3d57deddb5cc7c7f1d8316ad26ac4e4
tree417418c940ffad280e418fd432516d00b6d003f6
parent019d321a68ea07efcfcbc308443251644ff3e71c
KVM: selftests: Add "-c" parameter to dirty log test

It's only used to override the existing dirty ring size/count.  If
with a bigger ring count, we test async of dirty ring.  If with a
smaller ring count, we test ring full code path.  Async is default.

It has no use for non-dirty-ring tests.

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