Skip to content

Commit 2d0f2a6

Browse files
Maxim Levitskysean-jc
authored andcommitted
KVM: selftests: memslot_perf_test: increase guest sync timeout
When memslot_perf_test is run nested, first iteration of test_memslot_rw_loop testcase, sometimes takes more than 2 seconds due to build of shadow page tables. Following iterations are fast. To be on the safe side, bump the timeout to 10 seconds. Signed-off-by: Maxim Levitsky <[email protected]> Tested-by: Liam Merwick <[email protected]> Reviewed-by: Liam Merwick <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent 8198375 commit 2d0f2a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/kvm/memslot_perf_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ static bool _guest_should_exit(void)
417417
*/
418418
static noinline void host_perform_sync(struct sync_area *sync)
419419
{
420-
alarm(2);
420+
alarm(10);
421421

422422
atomic_store_explicit(&sync->sync_flag, true, memory_order_release);
423423
while (atomic_load_explicit(&sync->sync_flag, memory_order_acquire))

0 commit comments

Comments
 (0)