Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp351624rdh; Wed, 7 Feb 2024 06:44:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IEXoBDrHfFXsyIp9F7ubXeL5bjqp0xIte7y/AmpnQ/FTRWEnYyX+v3M2c8jBUd9NDsQbNpR X-Received: by 2002:a17:902:d306:b0:1d9:9c67:58eb with SMTP id b6-20020a170902d30600b001d99c6758ebmr4795989plc.30.1707317083231; Wed, 07 Feb 2024 06:44:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707317083; cv=pass; d=google.com; s=arc-20160816; b=biFL2cJy1z1WiZJV3nbDEacf//kSMJCbofdYclF6tBI5PFNXpYBOErqdmQkoWO9BYq 6Yeu6RAIPC4/h0YBwQSVOZmXj2AeL5NMs4FPT4fN1giRvC0LA/WtOZcdUrJ9FWqUvYNg IMh8Xv2UJd6Tc36gHcG3LBmMC7Jgwy87qRGAKLnMNebaVmWjBkL8DFyPmj22fYfK9T66 coGA0sQWR3f9nQLMJ0UB3bjRZpL9b6uwG4GEmJY64thxYiKur7EOJpYs8TMxVM8UhewN 818WEDePdhEBHL8Nl8w+lcblqzm7RD05crsgzSJ6X0TMkwQpjhTiQ51rXplux1/o/bS5 80PQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=lZHAUjLUiH8dEIm5GRCfRsiGf0PsZiDDo2l2QAJaJxU=; fh=sKVojRiy65i2tftcxtn5v0D/EVJLWjFnK/ejD4UnLIQ=; b=WyOtkzryhFJ1OGSZpoLyJe4i9/tfII9hyfIGd4t+YP2a0svH5wz9sSLCKNX61w6TX/ aLFjN1Jv28X6G0JERT6eag1j7xqCcBFFWDbXlIoWOLe2UREalLWTRcuMY5963HhJJvNN Wmx3Z7/xkD6wzE/8adc9cHYQ1gp5ACYjxLaE3ipp40j5tgVR+kmct6NPUpxDCWWRgNSZ utIb5DxQDiZxVREAyM6U7kGxW73AgkCRPcCSNgrUOj2Q8wQcAJLX2v63CO+yW/Ix5PaA mp/js/hWbTlHelog/g1sdkfz4VyPHuOtInvHu5TqyJjMU6qMftul6UejekUJpk4RsLaB CHvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="c/1vc146"; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-56641-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56641-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=2; AJvYcCVMRcuZTRcy02hr2IB+HVA6R9HZTpYc3I94EBwrBJufUX9mVsGEbrdBZdGUcI+RSCC1Lji0FL5UkK94LLNQ0WDLPyH3whyU73L6aXyVFg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h18-20020a170902f7d200b001d8dba2d29asi1692303plw.22.2024.02.07.06.44.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 06:44:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56641-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="c/1vc146"; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-56641-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56641-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 05FA1287B76 for ; Wed, 7 Feb 2024 14:44:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 986497E773; Wed, 7 Feb 2024 14:44:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="c/1vc146" Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (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 3842E7E77B for ; Wed, 7 Feb 2024 14:44:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707317069; cv=none; b=LxnStSxdc56DE83I4JbFGKE4lCugFunPee7RR6+iUhY5VGWNTYuGE/ecvvv9u13q8JDEgNAAQPxtsK/xztDnW2aZ9/EdwdZfvtM1bp9rphK14Rz6+nB7dsShRz7q7FWoXxXNP+2/wPiCFO/tO8ff3pHzv0JEprDNGCAevwUwkMk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707317069; c=relaxed/simple; bh=uxQwTzZxlSgUDCK/K3VvROXmTUugtOKyUPaFRh0caQo=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=WqKLTmSiUY5iZSNbG0kFzxoWkK7vzV3q1mbPxA7L2m9U+s+IXj0VqbjHXDfpULfT02cT3kmNmtjkpp2GHnCGWgudTYLeS996hSNdU2JWTQxP8qpgAcfansqNNI0vTYYahrcLsrvC3mPEIKTeNOiZ5QIxPy45GoqlzlotdvOgFCA= 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=c/1vc146; arc=none smtp.client-ip=209.85.216.73 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 Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-2968c4802f5so1710577a91.0 for ; Wed, 07 Feb 2024 06:44:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707317067; x=1707921867; 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=lZHAUjLUiH8dEIm5GRCfRsiGf0PsZiDDo2l2QAJaJxU=; b=c/1vc146QfyuQhsZ3HABmkPzE0U5W2DdfEeP0tBd2ZglkE6/adhB0UicGcluZGwEDf YgDoPha3JM69/IaWebpIsrIR3dCYUI51CbRHL15itQtHc/k6nvKtZtqDAqC2JCAPQf4U CG3qH6X4rJ9K77DcgW38Bs64ja8PdVDLjsITjRIs4stpkEnPhyefGz30wdK3CrHZ48/0 QpZ1IIfw7r2v0ZgMYmu5uXLbqv6EsjOdBrZJFQ3UfNy1tgMT9D9lpok3utWc7h9IAcwI Hbq83OuhxEgG/msvQcRSrSZwNNrjHs9fjHfQSOpCx3N4h//sQ5b+FvZ+CNVIsD/mHj4z IPrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707317067; x=1707921867; 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=lZHAUjLUiH8dEIm5GRCfRsiGf0PsZiDDo2l2QAJaJxU=; b=r6FQNq/hBh7n+eoEhja3kJv8YgoBpK9X/aUcPDG8cOygHOxBnAUjrUWM7PUgETQcv5 KgFLhhiKe6hvz1sPAHOrTEYcUVfdA1OTvudlZDrf3Nfps8rp8t9ccm8lsVXZ9du/PPL6 onJeDkftk8/kdwnHvvzGBc844q+nF4zPSRUSyNrvVxumkpNRrTgg7MOhriKsCN3LLKyT 2V6oBj5NBsoeFPZPPDpXRkI1LIXsaI9K2t9b7KGDCKU9BUneRZbFuxPmx4C1R2/VmpK2 glH8y4o5qWXH+UqpuVabZH4jHiV2X3m78j7+kInsjoZ5qZ3OqizNSlPEWJ9BeQWNl5Hp 9HRg== X-Gm-Message-State: AOJu0YxRy2N8dtTjHpZV/9aEHQD9792Pd0Imsb/3aTRZky6/ww195ujs UTYWC1VkMtP4YafNQ9fWmBOaCKjjDPiTkmdfiAbPoDIdfpXd8jOCSvjbgMznQoBJBOfSG6FzcIu sTQ== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:90b:5284:b0:296:7901:3844 with SMTP id si4-20020a17090b528400b0029679013844mr45687pjb.0.1707317067444; Wed, 07 Feb 2024 06:44:27 -0800 (PST) Date: Wed, 7 Feb 2024 06:44:25 -0800 In-Reply-To: <6fdbeed0-980e-4371-a448-0c215c4bc48e@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240202231831.354848-1-seanjc@google.com> <170724566758.385340.17150738546447592707.b4-ty@google.com> <6fdbeed0-980e-4371-a448-0c215c4bc48e@redhat.com> Message-ID: Subject: Re: [PATCH] KVM: selftests: Fix a semaphore imbalance in the dirty ring logging test From: Sean Christopherson To: Eric Auger Cc: Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Shaoqin Huang Content-Type: text/plain; charset="us-ascii" On Wed, Feb 07, 2024, Eric Auger wrote: > Hi Sean, > > On 2/6/24 22:36, Sean Christopherson wrote: > > On Fri, 02 Feb 2024 15:18:31 -0800, Sean Christopherson wrote: > >> When finishing the final iteration of dirty_log_test testcase, set > >> host_quit _before_ the final "continue" so that the vCPU worker doesn't > >> run an extra iteration, and delete the hack-a-fix of an extra "continue" > >> from the dirty ring testcase. This fixes a bug where the extra post to > >> sem_vcpu_cont may not be consumed, which results in failures in subsequent > >> runs of the testcases. The bug likely was missed during development as > >> x86 supports only a single "guest mode", i.e. there aren't any subsequent > >> testcases after the dirty ring test, because for_each_guest_mode() only > >> runs a single iteration. > >> > >> [...] > > > > Applied to kvm-x86 selftests, thanks! > Do you plan to send this branch to Paolo for v6.8? That wasn't my initial plan, but looking at what's in there, the only thing that isn't a fix is Andrew's series to remove redundant newlines. So yeah, I'll send this along for 6.8.