Re: [PATCH] KVM: selftests: hyperv_tlb_flush: replace NOP loop with udelay()

From: Dan Carpenter

Date: Tue Apr 21 2026 - 16:13:02 EST


On Tue, Apr 21, 2026 at 07:29:53PM +0200, Piotr Zarycki wrote:
> 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@xxxxxxxxx>
> ---

How did you test this?

regards,
dan carpenter