From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.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 66F4228C871 for ; Mon, 20 Oct 2025 16:32:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760977972; cv=none; b=BPrluBo8J9VahSPCS/YSkQgLMW1UG0PdXW1ZMEeYJFaxfXnf5L6Q0yax2KWDz454fvIY5kWr4VMHjW4pPP8sesDBWyBmtGZSQEEkUtFsL+fLNkO1Gx2a3kl26/Rlrp1mBVlMYzdTX9STgUq78DrlST+u0g/fzAVgll9LaWhTfgU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760977972; c=relaxed/simple; bh=kHu/zwUbCrQZ2tme86OxuUxLlfikNWjv8AaS4WsjHQo=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Db+zXn+8X53hBAH6o518+Z4uGjCX1NeQ2f/+ag00ue6FN+BEIl/oFrgDYux0Sy1cFyffY9+QBDeA23P9qBDEqRHBzaz/FfGYr4IFRpt97sxORcXflrC/DV7DgT6Hz4IXHmkAiM5NQVc6QJlVjDxfQjLdgOJROWR6JzwZicuQjkU= 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=O08gzrWL; arc=none smtp.client-ip=209.85.214.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="O08gzrWL" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-27356178876so31765075ad.1 for ; Mon, 20 Oct 2025 09:32:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1760977969; x=1761582769; 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=Diz1lCzHvuhLNBvdbjp3hmbn87n7UqeGb+eLzgGMNx0=; b=O08gzrWLfmGPK/lAeZ3guB94XFV3FO5ZHTPXFTZmfk4BijFb5i2+tsWEmscjVnXzPM 36nR1W0u3qA1Ld4xPzSjSYHrk5rlJcefT3W9NnkNqiTlVALJX1GKpD/1zABOCb5q+Z+l h1JpJeqYr3LHICWNBKwTRJYBPL/kKGocKpAdPeIFJeSCpSk1z/qcLO7MZu7n7oUp6Xd3 J95ng2iRGpggiyj/Xlomwd0UrO7IOVSQUXUQQcv11+5ZNqKwriGPxgNBY53sZDUCVp4+ MP7QqxbieJw1lnf6KfJ4nLWpfFYyyG+xDGpruPAoKbwKv4RnX/gGYO/LD4Nn9SicvYW2 tNug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760977969; x=1761582769; 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=Diz1lCzHvuhLNBvdbjp3hmbn87n7UqeGb+eLzgGMNx0=; b=YDsOtNFUUpnFDtCHy2ugSYC7T+03DyqHIzm/WZrx7uveg1EYKtAgnqi0o/5UgM3IBa IxGH5elkH5aJ/SbRxLv5Dqfi9ojr7op/qVnQdwPEKhFUiD+swmAaLBvBYAW6VKYBC0V6 ETv5BwCavK+ZlJT3mYIvAPX8nkCb+PG3mD0twJd2yeWHJCVoaGFIzzlAxz5ueAZmHZjm A1+2OiKBdLnAfdgTdhUHYTJt5w+gZO0aISbESe6xi9B7EVjNeV2MMo1fcyfszIhPk+X1 BK3zu7U2+YbsWck02aqnuyCNMpo+8vquHbb4AT6+SK4eAFfs9z9r6AO6AOuPqlV+t032 qilA== X-Forwarded-Encrypted: i=1; AJvYcCWcc/JcdVilLg+ZB87cId8GQsCQI2o4yO2SI0hQESyQYaIE7oXmqJYjw2wh7+4NGDCJzjplhRLJ6+0RLGY=@vger.kernel.org X-Gm-Message-State: AOJu0Yz3B6lSdzJBAjBh8eLGMUZcknnGVIQNkPF34yBAhC8sCVt7M/M8 HeWlc+FKi4xlXhYfvKQL4ArbvaSzfNgbUJ2G4B6YyKlob6Fv16dhpCDszH3gJ+apZqSTE9Tjfkb 93YT7wg== X-Google-Smtp-Source: AGHT+IEBssmEK7IRnbhmUgh1LvtwLWzxveFfoJwgyr9fXBCvprfyt2fJMMmtuyxeI3YpRV0rM/SKweh7WoY= X-Received: from pjww4.prod.google.com ([2002:a17:90b:58a4:b0:33b:c327:1273]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:f543:b0:24c:965a:f97e with SMTP id d9443c01a7336-290c9cf2e68mr182575675ad.2.1760977969344; Mon, 20 Oct 2025 09:32:49 -0700 (PDT) Date: Mon, 20 Oct 2025 09:32:47 -0700 In-Reply-To: <176055119471.1528900.16047808072294975428.b4-ty@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251007-b4-kvm-mmu-stresstest-1proc-v1-1-8c95aa0e30b6@google.com> <176055119471.1528900.16047808072294975428.b4-ty@google.com> Message-ID: Subject: Re: [PATCH] KVM: selftests: Don't fall over when only one CPU From: Sean Christopherson To: Paolo Bonzini , Shuah Khan , Brendan Jackman Cc: kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" On Wed, Oct 15, 2025, Sean Christopherson wrote: > On Tue, 07 Oct 2025 19:12:31 +0000, Brendan Jackman wrote: > > Running this test on a system with only one CPU is not a recipe for > > success. However, there's no clear-cut reason why it absolutely > > shouldn't work, so the test shouldn't completely reject such a platform. > > > > At present, the *3/4 calculation will return zero on these platforms and > > the test fails. So, instead just skip that calculation. > > > > [...] > > Applied to kvm-x86 selftests, thanks! > > [1/1] KVM: selftests: Don't fall over when only one CPU > https://github.com/kvm-x86/linux/commit/98dea1b75186 FYI, I rebased this onto 6.18-rc2 so that I could apply selftests changes that conflicted with fixes that went into -rc2 (yet another lesson learned about the dangers of using -rc1 as a base). New hash: [1/1] KVM: selftests: Don't fall over in mmu_stress_test when only one CPU is present https://github.com/kvm-x86/linux/commit/b146b289f759