Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3309185rdb; Tue, 6 Feb 2024 13:37:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEvQT+m5gIjmqG9Cnkbjvr0vnd4aEptGr2WO9PtOzd7au6vXc0vtlGOAgrE/J6Jn04EAEmf X-Received: by 2002:a05:6402:695:b0:55f:5abf:96 with SMTP id f21-20020a056402069500b0055f5abf0096mr2967813edy.17.1707255465866; Tue, 06 Feb 2024 13:37:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707255465; cv=pass; d=google.com; s=arc-20160816; b=z3oc5fenqdcTNmxVndZt2fdDuxk8138ir3U67yVJPMr0Ma3rF2bQ5XGfNou+Pwf7Tu Bapjab9RO+AN9wj9Psu0usoBrHCkGxxmOWZ5gqfBNJCQW4M0DOsh63RqIrqAa+tnnXan 6VRq8+RMAcDpFQQlsc7E7LEOAMOds7AGhyLZ3yqn1aGsxbUxVpC7uq5HJ39A5RIDb2Em 2ADge5YPDVhpvuVtcGm/Z3pR8jrmoobCUz+K3Q9cO3GmNiG7UGfCNRSGan1bpKU06F8d iw7MnxuTuN0TdkLD0q+7mT2dVX0TUarKHewRV7qsP5NDk30Kc9pci1CzfUozGcJKucBT E5gw== 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=EoqazHYMFgTO6u6ICQ3ULYXowNWIv6wCHqKNwnPyjdQ=; fh=OAoCZdftRjcGjBEYArU0cbLicvav4zrcO+0beK03Ybo=; b=tVH7J5gAY19/debp8GMbQuYfdxOT+exDoLYkPPELOZK1pP8/HZRFw1uGjYyrjeSoO8 igJA/JqR9NHrqvRCULlZDBmWdlq6IjdOg2Ob/R7tZMQ9JCtS7jXwBZ97LhhLVnycGpfL Q3X9Wt1UzZzgHuZo5svoyy0mhypjPNNbATVG6VNSB3WaeeHWpUrdedB+zDl8GQQE+s7o 51wHVfcKMvsTRBf6o7u8jEi6wCx1nV0dGi4V9/+c9HVpEFjaFTSdhwYzZlPbNJsbGEsD BydS/V2SbQuupGb9W0Ms/4blfWh53DnpfNeBOSvoEkQZPtD9u6orGCzikhnIoTM4mze+ B06Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="yG/0Z1cy"; 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-55637-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55637-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=1; AJvYcCWxHptX7VfwehGNTp0WZwjv9pE6qupBGTVWZ1oGZysroblPO1WRv3WwHrIdFle53p+9deOExUcJ+mDly6HOljyoxOgTSmRRqdtankIpjA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n17-20020aa7d051000000b0055f43af8a99si1599397edo.350.2024.02.06.13.37.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 13:37:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55637-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="yG/0Z1cy"; 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-55637-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55637-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9BBAC1F2577E for ; Tue, 6 Feb 2024 21:37:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3C081CD3A; Tue, 6 Feb 2024 21:36:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="yG/0Z1cy" 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 977211C6A8 for ; Tue, 6 Feb 2024 21:36:55 +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=1707255417; cv=none; b=qiS3sCkb8LhAMLGkRH0ZVL/LQu8RxtLawz9bf6uluck7GJtvnm1wXSGKHxdMFuTzgmJli7VOmdR1/tc+Rj3uLtRNjkg9HQDEvrjKfbzjEq4R/A7FuVL7X6aTHeRcIniZegu89OSnQlUMtUWWgdorNAqMtREE1UQ0/j6tFb51mug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707255417; c=relaxed/simple; bh=XmYAqRBEKviyoYT4iE3X8UCqLYUiRQq5kAR/vxNpWek=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=R6ZeUi0GQdY0xSdGtM3jo6zvBtJHsICQ4kyLPpG3Am8ojCqbi9R//MIhwyWj4Vpp+LGgZIDSQZnO/0+BR7Hzgv4OZiEg/xEHsr1FmvVnzT6xhfzXB2xjkUTEHtm0y1bGco1kda+TvYDVt3EDTh3WV0brTQyr2ZNP7J3aviXgMgo= 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=yG/0Z1cy; 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-2962a9646a3so5513715a91.1 for ; Tue, 06 Feb 2024 13:36:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707255415; x=1707860215; 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=EoqazHYMFgTO6u6ICQ3ULYXowNWIv6wCHqKNwnPyjdQ=; b=yG/0Z1cyz5jhT7a8Kqk0HvIq4Fz82MfUtaGnO+kB9HLPHgq91uBkUyU1j+BtU04Vdi 0oLyrtuv+wj8PN8mV4xgxBkT4Aa/JF+lN6wc2auLLLqBGyJuR5elWmhcnMOWKzmv/YUw UQLpyyjERf2QTSJmV6INB9zWpe3wSbR5Yp8YkvzF5q96r8VjzG6LToNIqf4qmrjiz4j5 TDyWNOLK85TZmyGlfFZDawr1DHgqKWJXL9wu3n5FZ/XvVzjEsTsLbmgRLMyfUp9coayP fdpc7uDACOg3RRT6Q72sHs77Kq064KnPTomOOVG+YF/nMwC2CsexX+sPoOl32ALo+d0P 4yLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707255415; x=1707860215; 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=EoqazHYMFgTO6u6ICQ3ULYXowNWIv6wCHqKNwnPyjdQ=; b=Kxmbgl7sdXi+3+2XQWoMF0vrO+1SRdKX5LONTmVp36y/gNVLsbabTEVTTwSf7TrfqF 3fsg4yiCSiYR+bGCfd3TVr/kzS8w2jBLPd+uoayY4pggGiNdMZ1JmAHHw+TfvsHtFwZQ WOYG8TZKXQZT8+GC/XYimsNhpLckuP3oRZqOa8vyrqVEpLGGKT5v3okUEWlKB4y9KA8L aXi4t7/U4skq9Avk+3EkJGkM1y2549FYtFnMjCQ22b9RcLnFmSsA0qJUdMqQJeSqSBCF egB0+j0hoSMpq+zjB8b+ZDXv8Y9v5EkNXDeQCmlIz4caYWpWHgfQ/1BY69mdNr+xjAV+ Wsow== X-Gm-Message-State: AOJu0Yy9uWM4sqzv0IHbBbS5dNW0oZF6olB8GCPAFSAOQ8D8EEPfEo4h a0UfFaWMRrE46HMxgHOC6bKG+gFoX9gOn2tkXExoyLfrjGL8qauxKtvMUmJMCcVsJVdqiRd3t6z n5g== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:90a:d445:b0:296:9967:2e8e with SMTP id cz5-20020a17090ad44500b0029699672e8emr2190pjb.8.1707255414896; Tue, 06 Feb 2024 13:36:54 -0800 (PST) Date: Tue, 6 Feb 2024 13:36:17 -0800 In-Reply-To: <20240202231831.354848-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: <20240202231831.354848-1-seanjc@google.com> X-Mailer: git-send-email 2.43.0.687.g38aa6559b0-goog Message-ID: <170724566758.385340.17150738546447592707.b4-ty@google.com> Subject: Re: [PATCH] KVM: selftests: Fix a semaphore imbalance in the dirty ring logging test From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Shaoqin Huang Content-Type: text/plain; charset="utf-8" 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! [1/1] KVM: selftests: Fix a semaphore imbalance in the dirty ring logging test https://github.com/kvm-x86/linux/commit/ba58f873cdee -- https://github.com/kvm-x86/linux/tree/next