OSDN Git Service

KVM: selftests: Create a separate dirty bitmap per slot
authorDavid Matlack <dmatlack@google.com>
Fri, 17 Sep 2021 17:36:57 +0000 (17:36 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 Sep 2021 14:33:14 +0000 (10:33 -0400)
commit7c236b816ef16c2969a88ced658dab667e9dd4ee
tree1a5de9b3ebe832bc62e53410b38611c356020fff
parent9f2fc5554a4093e80084389f760d0b06ec2ff782
KVM: selftests: Create a separate dirty bitmap per slot

The calculation to get the per-slot dirty bitmap was incorrect leading
to a buffer overrun. Fix it by splitting out the dirty bitmap into a
separate bitmap per slot.

Fixes: 609e6202ea5f ("KVM: selftests: Support multiple slots in dirty_log_perf_test")
Signed-off-by: David Matlack <dmatlack@google.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Message-Id: <20210917173657.44011-4-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/dirty_log_perf_test.c