]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: selftests: hyperv_tlb_flush: replace NOP loop with udelay()
authorPiotr Zarycki <piotr.zarycki@gmail.com>
Wed, 22 Apr 2026 13:03:07 +0000 (15:03 +0200)
committerSean Christopherson <seanjc@google.com>
Wed, 13 May 2026 16:54:44 +0000 (09:54 -0700)
commit749fbf2bdcd71f6fdd2524f0f8102e1be38f3254
tree380cb6e552fcd3435cfa7ea48fcacfcd02ed32f1
parentb67c030f4f6589c574d98de4f3c4ea3efee9b2be
KVM: selftests: hyperv_tlb_flush: replace NOP loop with udelay()

Replace the open-coded NOP loop with udelay() which was added to KVM
selftests in commit 6b878cbb87bf ("KVM: selftests: Add guest udelay()
utility for x86"). The NOP loop is CPU speed dependent while udelay()
provides a deterministic delay regardless of host CPU frequency.

Signed-off-by: Piotr Zarycki <piotr.zarycki@gmail.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Link: https://patch.msgid.link/20260422130307.1171808-1-piotr.zarycki@gmail.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c