From nobody Thu Nov 28 02:57:18 2024 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83B7AF9D9 for ; Fri, 4 Oct 2024 22:01:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728079321; cv=none; b=d1SqcvAxMvktFEVcdVay9oB21oisbKdn9wx3rPwLK9YRC/rZsuJ34M5Brb2e1PwX4uf7I+7QF3BNnrm1PTumGFgPqdukby+50oDVh1b2x8qI0goHq3JCdIV/CQlt4J4xsNjW7EZE0T8y7qLKuQY5WWKY+HqXa0TlckCJhzZIaW0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728079321; c=relaxed/simple; bh=hGc2tT+Mkvp9Uct3RiuCNP3syOpeJxVUm2NsIQXbuyg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=mSwTHeA4jTudgSPTUjPRCzjejjfaTqGKRqigTuC+69JHhqgJKxWexpFp3iV+q5L2Y9/7w6Yalupb96O9HcElzDF2HGer+PUqZeDJDX3MfkG9iUxjb8jmKJUeOevNAwU98nUTWOP3LT4NGNbwaV8jpx6YcENllmzoiKRbqYf4MDw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=SodTg4g7; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="SodTg4g7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1728079318; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=szW3LFz6JagwXYMVlYdGhQ1/qZOpFV//HtNqCZA+SAY=; b=SodTg4g7bgoX9RnOVo86ofVIRvQNwSiyBAMGLYHA8hi8Tv5F5EpxMZgzbr5/O6/TIX5oiL RZ9+r9iZHoxeZVB1m8RjTmxlNygxwyf7YpwwbVCJhHio3OpgrUCotytow+ud2J5KIJL7oi il9l9o3slgzEP6mQbr4GkddXkTEwnfc= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-636-DPCdrPTtNdycPuOu_xu1TQ-1; Fri, 04 Oct 2024 18:01:57 -0400 X-MC-Unique: DPCdrPTtNdycPuOu_xu1TQ-1 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 332D91955F41; Fri, 4 Oct 2024 22:01:56 +0000 (UTC) Received: from starship.lan (unknown [10.22.9.208]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id BF4693000198; Fri, 4 Oct 2024 22:01:54 +0000 (UTC) From: Maxim Levitsky To: kvm@vger.kernel.org Cc: Paolo Bonzini , linux-kselftest@vger.kernel.org, Shuah Khan , linux-kernel@vger.kernel.org, Maxim Levitsky Subject: [PATCH] KVM: selftests: memslot_perf_test: increase guest sync timeout Date: Fri, 4 Oct 2024 18:01:53 -0400 Message-Id: <20241004220153.287459-1-mlevitsk@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Content-Type: text/plain; charset="utf-8" When memslot_perf_test is run nested, first iteration of test_memslot_rw_lo= op testcase, sometimes takes more than 2 seconds due to build of shadow page t= ables. Following iterations are fast. To be on the safe side, bump the timeout to 10 seconds. Signed-off-by: Maxim Levitsky Reviewed-by: Liam Merwick Tested-by: Liam Merwick --- tools/testing/selftests/kvm/memslot_perf_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/memslot_perf_test.c b/tools/testin= g/selftests/kvm/memslot_perf_test.c index 893366982f77b..e9189cbed4bb6 100644 --- a/tools/testing/selftests/kvm/memslot_perf_test.c +++ b/tools/testing/selftests/kvm/memslot_perf_test.c @@ -415,7 +415,7 @@ static bool _guest_should_exit(void) */ static noinline void host_perform_sync(struct sync_area *sync) { - alarm(2); + alarm(10); =20 atomic_store_explicit(&sync->sync_flag, true, memory_order_release); while (atomic_load_explicit(&sync->sync_flag, memory_order_acquire)) --=20 2.26.3