From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0F5A31196F for ; Mon, 6 Apr 2026 23:00:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775516416; cv=none; b=Nn+ZAVDyheys4fQqjZoAN9v8rUWrxXlEukaxbtRTSOmcv12cETPQsyUZgWuxthZdn/3DfzvoRS271gj/ZReIn+zCHMfESYhjqSQT2iae5FFjHdoIWh9E0fsL8pLI/hY+Rn3dG3cjlFPBHkd010sDr3+pgISkuqqLlHd34Nnfn+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775516416; c=relaxed/simple; bh=SU7cd0cbc63KLc5D6MlfVPj7f1aX25jUYDpVEVQjE6M=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=UwLb7GwxDVO//zSX4OorRfHOl4xK2jX1/IRw7BVmUjrX4J7nLQFQsg5VZs75xV/BvFPEvO1SOoGPWnHOlhADkKv0ykogKd9ckTqHxlhHqPQxm0GsTbYDrruHipu/AdfcILS8wWslT6UQUtn7Hh96jyv2m06SEdHHkMLYFNRwvTQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=R0Uw3IiO; arc=none smtp.client-ip=209.85.210.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="R0Uw3IiO" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-82ce1c395ccso6381295b3a.2 for ; Mon, 06 Apr 2026 16:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1775516414; x=1776121214; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=LIGAhI9t8Vs7faC/bm2p2nXCXAiMZcEtLu5XGGyDRdQ=; b=R0Uw3IiOqYb9Vti+fkCI3gmJzJdQbnUW+sc4pnMiUgamAD2BOpvJG56RCMcRGp6K9J 3gkUi3HaIb35pVbEfo1kQFmR9Ck8bc3eQ6mhjh/PC9shOE5sAn0ipbLtBkfQPMLvMy/t tjGiRFIrblBlRoo4VcrB7XKZs3vLGJczQ8h9BDJZQsfY/ZbQtUXomibHy7RbCmSKSxM6 vgmBvBJzkJDEZO2JU4odumOYf+G+jH8EbRF8gCvqrExw7sjHAYyVNubB4wpWKAHXsfAO v2Fs3IYORmnGA4/08ZHpJrCezHdpM8phpCzBnyU6NsmwgpC9VJbjHBUmxB/5llqYu9Ti 0qpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775516414; x=1776121214; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LIGAhI9t8Vs7faC/bm2p2nXCXAiMZcEtLu5XGGyDRdQ=; b=BmC++HAYC/aVNCdeBPHJkopRfFYPnvxKOUDLM14PRwBeWSftMQXuC/25UgmNcxrtos mwAPemElJgk2MbsC0MZpmDxN9k/PcLn3mpYgENFoJW93f+yPc7z7bk9nR3WNThkZQ7HJ qa2VYL0ahvUKn+NIj14mdg4aK/i2VDMDKjfyQRKWjVFwKdxR7u38CGzYEoM/CyF9B6b0 JgyUKeHMOm8Y5HVzWa4HHvLJkTM9OFMc6aTrVUVonzlGw2vKVWuQgd3NnSwFtUXDjxJ9 hCfDc1Wj5shBBRRvflTtefwf/LUxCXkXZCnbx6Mpz/O1hwutjTnXYLQD4iaJr6yL3SrD 1jBA== X-Forwarded-Encrypted: i=1; AJvYcCUAQg6imcfjG6gcNt/5aaQSyS9zCz5E1RPcxsDIjkS6m5evHCSTh5/t5LAymO3Rv2qkx4E=@vger.kernel.org X-Gm-Message-State: AOJu0YwFCZnOZLHKlM6+abFmmdaSECKE/kDwwcUzoRDGG7j146LNtkU4 ZcAO0rFeB497R2ar0dxzof2aHn1lzmgS5Izd8n8yzqmMjJSsMVY6dibkYp0GIvjL0Z14ek9bdO5 o/JVJfQ== X-Received: from pfud22.prod.google.com ([2002:a05:6a00:10d6:b0:82c:6863:427a]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:1ac9:b0:82c:e3f4:f5e9 with SMTP id d2e1a72fcca58-82d0da7d403mr13540678b3a.18.1775516413925; Mon, 06 Apr 2026 16:00:13 -0700 (PDT) Date: Mon, 6 Apr 2026 16:00:12 -0700 In-Reply-To: <64d44f37-7d31-46be-b9ed-cc86969777dd@maciej.szmigiero.name> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260402102953.2984284-1-mayuresh.chitale@oss.qualcomm.com> <64d44f37-7d31-46be-b9ed-cc86969777dd@maciej.szmigiero.name> Message-ID: Subject: Re: [PATCH] KVM: selftests: memslot_perf_test: make host wait timeout configurable From: Sean Christopherson To: "Maciej S. Szmigiero" Cc: Mayuresh Chitale , kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , Shuah Khan Content-Type: text/plain; charset="us-ascii" On Thu, Apr 02, 2026, Maciej S. Szmigiero wrote: > On 2.04.2026 12:29, Mayuresh Chitale wrote: > > When memslot_perf_test is run on qemu, sometimes the RW subtest fails > > due to sigalarm, indicating that the guest sync did not finish within > > the expected duration of 10 seconds. Since the current timeout value is > > itself a bump up from the original 2s, making the host timeout value > > configurable via a new command line parameter. Now the test can be > > invoked with '-a' argument to run the test with a suitable host timeout > > value. > > > > Signed-off-by: Mayuresh Chitale > > --- > > Out of curiosity: which KVM-enabled setup takes more than 10 seconds > to run that RW test? Hmm, I assume "run on qemu" means running in a VM that's fully emulated by QEMU? That would probably explain why it's so slow? > Does it have like, multiple levels of nesting? > > When I wrote that test I calibrated it on a mid-range x86 machine, > where one iteration took on the order of 0.01 s. > > 10 s time limit per iteration is already three orders of magnitude > slower than that. > > Otherwise, the patch looks sensible to me. > > Thanks, > Maciej >