From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) (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 BBEB347045E for ; Wed, 5 Aug 2026 16:51:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785948712; cv=none; b=Y57O+9Ne041pdPhMlA+JeZMWnNGX3GHiis7wEpWtXTEQ3sahrkngCkEf+jQqFuqgYSDWHPiWW35UdDZXUvWTCXg17msXnYu5RrrMHQWKtDMbTSGRVnZFnaD3tWq0dNeV0Dq5+pO0rjQKxNVhc1Dg7gwo3aMO995hllC4lNdlJIE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785948712; c=relaxed/simple; bh=icvrJSGpdYUNnT9Ydyn8XbeMIq0CEpuZVgm64o2M0J8=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=gfI0Sp+42agbUjw+twAmQlJgRi/oIhUuF9dPwKrSkDNEQMb+ysGY9Sky/hWwq+tebwH3FEH+Z+rTdiSlvV0DiDHwx4JB6NEfAyQdsSvVj+q7NW/cjhoYBokHzCnNQuUPVml2mVHJtxOuO76dO5LnagVfcWz3WGKZechOng0TeBQ= 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=rJIX9j01; arc=none smtp.client-ip=209.85.210.197 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="rJIX9j01" Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-84e13b57b2cso1539855b3a.1 for ; Wed, 05 Aug 2026 09:51:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1785948709; x=1786553509; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=jrqhku8KyxeiISShmwJpJXHc7/raRYshoO3CpoShleo=; b=rJIX9j01M079M0bfTHWfXLIKK3H8Y4i8HR8rvdwuVpkvkqEOQdAfkSzOxe+8bGGTAj AtUgdlsDGjyEpWvU70fOnHjpOTMiWqqjUCEmJ/wpb+pINCuWlbe8lvhO9uhNJwbEXaCY 7hR35PNkhkDgmV9ra0nkMQ+/cewf92PJbpY+udHK5A9geilpwhA4QkRkPA5PbE1e9Pha tf4lHSn3LjPamlItnL4w75hsrJG3fWarWUKNYbpp8phOOGpIV+OHMp9G17yzpXKDypwC wTlnjiCJoTA9FpBQTjimvh3FZqziDYRYp+8BBqju8W3BjpVBcubgD6wXqnZGh3Y3l8HV C+qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785948709; x=1786553509; h=content-type: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:content-type; bh=jrqhku8KyxeiISShmwJpJXHc7/raRYshoO3CpoShleo=; b=R4IYJUJC4mkuInOQ2mAR+RPBxAx3yUTIOotGsnjQLrkynBwkHZY3weo2Uy0vNYhs6g 3sN4D0dE8jr4iRziiD8BywTkTbvHkl7FzYtBq6JmjyKvKeMAnKgKnIJJmhzIhP6rSczb PC3dwfYfd3SmnGNExUQGW0WixcHq8PRkIhc8rr92NxwblYXHKWoeSuxNk90c5Ma+7JVn 2wkEjXu4VGVomTT9Z0heiuk1XypTNUS1V+H6EeB2fivolbUXuDxdYVDruwcji8y1TJod omPUG0/Yj66P1tCrEQiPxrQxDP1O8/k5wyyVaHvM415/ZZpNE9gn9GzKPzY6RtPsnFpc cj1A== X-Forwarded-Encrypted: i=1; AHgh+RoeMcC7E6I4z2dQ6JuyYUF+ZDoI6+WoObnckg2aggAAuQ4fb54bPbT3xD+kzJZKeiFZo9HuBnV47Db13uw=@vger.kernel.org X-Gm-Message-State: AOJu0YweXBk1k5k8caXZXfEEWlh1hED7RxRpOMDlqSm8+Htk0e3yepfI tJpBMIvQGn4a+Yd/BHsnBooXYAgv8n1WwKxQC0eJ6uSblyqBelibjHQTqp81YYlOHdIJ5/BxScN oWoNh2g== X-Received: from pghr18.prod.google.com ([2002:a63:e512:0:b0:c92:dd1e:dc3c]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:99b:b0:848:76c4:fba9 with SMTP id d2e1a72fcca58-84f2dff77c0mr8958464b3a.7.1785948708769; Wed, 05 Aug 2026 09:51:48 -0700 (PDT) Date: Wed, 5 Aug 2026 09:46:10 -0700 In-Reply-To: <20260731195612.2697986-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260731195612.2697986-1-seanjc@google.com> X-Mailer: git-send-email 2.55.0.571.g244d577d93-goog Message-ID: <178594833919.3639358.12902044577496582719.b4-ty@google.com> Subject: Re: [PATCH v3 00/12] KVM: selftests: Add more syscall wrappers, fix hardware_disable_test From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini , Marc Zyngier , Oliver Upton , Christian Borntraeger , Janosch Frank , Claudio Imbrenda Cc: Joey Gouly , Steffen Eiden , Suzuki K Poulose , Zenghui Yu , David Hildenbrand , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Fri, 31 Jul 2026 12:56:00 -0700, Sean Christopherson wrote: > Third time's a charm. Sorry for the spam. > > Buried in the middle of this is a fix for the hardware_disable_test where > it can end up with a runtime of multiple minutes when running a preemptible > kernels on a large NUMA system. Turns out my analysis/guess in v1 was wrong; > the problem isn't direct CPU contention, it's that letting the workers do any > amount of "real" work on any CPUs leads to pthread_create() slowdowns from > the perspective of the caller. > > [...] Applied to kvm-x86 selftests2, thanks! [01/12] KVM: selftests: Add a KVM syscall wrapper for sched_setaffinity() https://github.com/kvm-x86/linux/commit/f766bf3d0ac8 [02/12] KVM: selftests: Set threads CPU affinity before doing work in hardware disable test https://github.com/kvm-x86/linux/commit/2887da61c42d [03/12] KVM: selftests: Pre-set threads affinity in hardware disable test when possible https://github.com/kvm-x86/linux/commit/496779b54943 [04/12] KVM: selftests: Return the target CPU from pin_task_to_random_cpu() https://github.com/kvm-x86/linux/commit/8de0e85f654e [05/12] KVM: selftests: Extract picking of random CPU from cpu_set_t to separate API https://github.com/kvm-x86/linux/commit/d58cc7bbc5a0 [06/12] KVM: selftests: Affine threads to random CPUs in hardware disable test https://github.com/kvm-x86/linux/commit/563416ea9ae4 [07/12] KVM: selftests: Drop unreachable, dead code from hardware disable test https://github.com/kvm-x86/linux/commit/bb0e7d84c4be [08/12] KVM: selftests: Add KVM syscall wrapper for pthread_create() https://github.com/kvm-x86/linux/commit/5171573ce7cb [09/12] KVM: selftests: Add KVM syscall wrappers for pthread_{cancel,join}() https://github.com/kvm-x86/linux/commit/bc9143135bf3 [10/12] KVM: selftests: Add helper APIs to cancel+join pthreads https://github.com/kvm-x86/linux/commit/939b20e5f35e [11/12] KVM: selftests: Add KVM syscall wrappers for pthread_{g,s}etaffinity_np() https://github.com/kvm-x86/linux/commit/83b5065f3e1c [12/12] KVM: selftests: Clean up global constants in hardware disable test https://github.com/kvm-x86/linux/commit/1039496ae75d -- https://github.com/kvm-x86/linux/tree/next