kvm: selftests: Support dirty log initial-all-set test
authorJay Zhou <jianjay.zhou@huawei.com>
Tue, 3 Mar 2020 08:07:10 +0000 (16:07 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:57:41 +0000 (17:57 +0100)
commite743664bea8e04d2735b958fe912e7cce3ab350f
tree0322f80fa34f6811d8cf8dd031e44f3e933afe19
parenta1c77abb8d93381e25a8d2df3a917388244ba776
kvm: selftests: Support dirty log initial-all-set test

Since the new capability KVM_DIRTY_LOG_INITIALLY_SET of
KVM_CAP_MANUAL_DIRTY_LOG_PROTECT2 has been introduced, tweak the
clear_dirty_log_test to use it.

Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/clear_dirty_log_test.c
tools/testing/selftests/kvm/dirty_log_test.c