Skip to content

Commit ce95c16

Browse files
author
Maxim Levitsky
committed
KVM: selftests: memslot_perf_test: increase guest sync timeout
JIRA: https://issues.redhat.com/browse/RHEL-66118 commit 2d0f2a6 Author: Maxim Levitsky <mlevitsk@redhat.com> Date: Fri Oct 4 18:01:53 2024 -0400 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 <mlevitsk@redhat.com> Tested-by: Liam Merwick <liam.merwick@oracle.com> Reviewed-by: Liam Merwick <liam.merwick@oracle.com> Link: https://lore.kernel.org/r/20241004220153.287459-1-mlevitsk@redhat.com Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
1 parent c84085f commit ce95c16

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
@@ -414,7 +414,7 @@ static bool _guest_should_exit(void)
414414
*/
415415
static noinline void host_perform_sync(struct sync_area *sync)
416416
{
417-
alarm(2);
417+
alarm(10);
418418

419419
atomic_store_explicit(&sync->sync_flag, true, memory_order_release);
420420
while (atomic_load_explicit(&sync->sync_flag, memory_order_acquire))

0 commit comments

Comments
 (0)