]> 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)
commit99170e825a662d0bf2bed807b80878327cdf2edf
tree1a5de9b3ebe832bc62e53410b38611c356020fff
parent99c7dfe3fe4437b4b0b15eb7388c10adc46c85cd
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: 33e51d157dba ("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