]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Tighten checks around prev iter's last dirty page in ring
authorSean Christopherson <seanjc@google.com>
Sat, 11 Jan 2025 00:30:01 +0000 (16:30 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 12 Feb 2025 17:00:56 +0000 (09:00 -0800)
commit2020d3b77a5a40a133e18fb4c870e9fe384405fd
tree17c1215b2f607279f1fe527148c2a0680c5c981e
parent73eaa2aa14b73fde5a160785b49d99c975bc9609
KVM: selftests: Tighten checks around prev iter's last dirty page in ring

Now that each iteration collects all dirty entries and ensures the guest
*completes* at least one write, tighten the exemptions for the last dirty
page of the previous iteration.  Specifically, the only legal value (other
than the current iteration) is N-1.

Unlike the last page for the current iteration, the in-progress write from
the previous iteration is guaranteed to have completed, otherwise the test
would have hung.

Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20250111003004.1235645-18-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/dirty_log_test.c