KVM: selftests: dirty-log: Use KVM_CAP_DIRTY_LOG_RING_ACQ_REL if available
authorMarc Zyngier <maz@kernel.org>
Mon, 26 Sep 2022 14:51:20 +0000 (15:51 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 29 Sep 2022 09:23:08 +0000 (10:23 +0100)
commit4b3402f1f4d9860301d6d5cd7aff3b67f678d577
tree45c1f5908d7204e33eeeabe73f541edce2fa1f0d
parent4eb6486cb43c93382c27a2659ba978c660e98498
KVM: selftests: dirty-log: Use KVM_CAP_DIRTY_LOG_RING_ACQ_REL if available

Pick KVM_CAP_DIRTY_LOG_RING_ACQ_REL if exposed by the kernel.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20220926145120.27974-7-maz@kernel.org
tools/testing/selftests/kvm/dirty_log_test.c
tools/testing/selftests/kvm/lib/kvm_util.c