]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61435aa053583723eabb6760b27c562deb43f38a
tree1a5de9b3ebe832bc62e53410b38611c356020fff
parent513aad015da2222e8dd6ef95de33bf2f3ca748fa
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: 02caacbb26b4 ("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