Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp283540rdh; Wed, 7 Feb 2024 04:57:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0ITclepyF4Nd5JGHZUlIj2oTfcwq6Vfjh9anU2Cllt4+lXZfjDOn4KbgW3bCOlSQDMP+a X-Received: by 2002:a05:6a20:1451:b0:19c:a16d:ca79 with SMTP id a17-20020a056a20145100b0019ca16dca79mr5162037pzi.15.1707310633676; Wed, 07 Feb 2024 04:57:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707310633; cv=pass; d=google.com; s=arc-20160816; b=vrRdNH0LzARW9u3iqScH2hsxiRorPqlzro9sVpw8A3DtkOLKpjyt7ipDWAmdU6/WaW ux2Hsc8a5ZzBLJvldsX++7mZdZJ5V6MuABWczWd/HYghoxLcbxnEra0GtLgcTDxsX8I2 /qMg4FB5aWRRDaumatP5Oj+8fkJnyIsUW6AWQMJ3B4CQIMfH1k4qSphlfFuZht/AwBLs 8cCuvyR5wgSq9cVYBMy8hoyQw0pAwJGNvByW/VF7eDRHy+IwkrCfaeSAOE6XYCEfuscI jGqppirnOvOZPTOYCy3sWgn6JAKZOchE687G5BnweSfehOEUcFMJdaTlWusSLGqF0UaQ weZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=IjLljkcOjmkfh1di8sk/TzvNm0GraGUpgA3hDhsNW28=; fh=9by+hUtGr3wxlOx/D+XHoIFBgQr4r08fJkZwdIT4wYk=; b=V66+kqubmL8DjTQ+3ElDCdfCzfR4t4P+4FKtH5z0P9elHh4vgXpMMNBTnQpC0YO2A2 9lPnLKP/4QWwqTjY3sMkRGiy1d0+iMolkofCSWAc0xDCp8RYNAiMTBl5g+26z0fRMCVj +klV1zAmuTL14MJ6C7g/0+KBKdVpUhpyzVh6gNHyEYWB79qdDLC53OL4H+ok4QIFyzKJ 9W34Yg2tDp26AmwVOxIYteNBNm0buPGJU21ZRwhgdSOkkPZzPBGphxEBfv/r+ypjzUFz u1U8ozefJfowjjdDJ0s5+0331sYD26ckSqY2B0kuWi9p0BtwOcRrg0dF0moRi34f7STb AgmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="XwJ9/kVc"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-56505-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=2; AJvYcCV1Cl39eb1+K4w14Pkr0F/3WiwV8I+7CK3DHdIm1g5Sezyflz5zwlDDiKGZ3njUDVepywOR+13sQQnXilF7G+Q2OLR0EaPmBbltmNugqg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id fr10-20020a17090ae2ca00b00296a6ace56dsi1485671pjb.189.2024.02.07.04.57.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 04:57:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56505-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="XwJ9/kVc"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-56505-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C3AE6B277B7 for ; Wed, 7 Feb 2024 12:56:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE00B768E9; Wed, 7 Feb 2024 12:56:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="XwJ9/kVc" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58ED476036 for ; Wed, 7 Feb 2024 12:56:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707310571; cv=none; b=CC4dOUqtR+JbG9hbidHlXhKkBNyiPcm1/eNA4D9x1D/oSwJZ+5skfEhoc2+NkmSNlbtQHeQ4A1+jZ6EDemDEXMSZc6S6RFvJHrQcpAp3EqOrW7SArQ1pzAZ7wVV2ihlojnPOHRF55OjMYpaKCrsqEj/Go8tjxD1B4r70dwNHJ1M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707310571; c=relaxed/simple; bh=4w4s8GAeYati7RUQEBui/SkRd47gbmjGEuufx8ZOtdk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qX8+d9U7YCIJc/yIizCHvDaR9ri71ef1k+1jZ5DPjbJy56ueiUm7ScnfKJTqrUfI7n4kbeVItDGRHzKSxFSmOSEULVXF6xo8p3QUfi010eQ6Da7IC+WQ8HyygdraNpjsgAxwNnJBzeHf31RCTYOkec5sxEqlIk13f3E8VfwsPew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=XwJ9/kVc; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707310568; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IjLljkcOjmkfh1di8sk/TzvNm0GraGUpgA3hDhsNW28=; b=XwJ9/kVcP5ne5Uu/zrUtKroyyeUSkp1SUxaDQNvz7ch6vD1nDxO3xbJ1pucjU5N8HJoick +gVzqtEJPju8imvjAFqV2yYK7VfP8M9pmNdO9JeJuA7TCEgAk7dEDSrTIfpFdyDmO1JJOi TveDp10MEg9yZ1pAOtuPcP3SiHTMhDI= Received: from mail-yw1-f199.google.com (mail-yw1-f199.google.com [209.85.128.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-76-bMxVDLmOMZeuLs5ZMUPJmw-1; Wed, 07 Feb 2024 07:56:06 -0500 X-MC-Unique: bMxVDLmOMZeuLs5ZMUPJmw-1 Received: by mail-yw1-f199.google.com with SMTP id 00721157ae682-6041c45ce1cso9280297b3.1 for ; Wed, 07 Feb 2024 04:56:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707310566; x=1707915366; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IjLljkcOjmkfh1di8sk/TzvNm0GraGUpgA3hDhsNW28=; b=mmF0HTnIDdWn/6naXYoNqsDszP0Nhj6ijqo/xUXkp4uuHj7YtJWC/2QQknavaKaDtr uEbfrfbBg+foO8D8wLtVYa00r2vPGC+n73scWK0JVltyp9BSfiwPiNRmnVfRUKwqrjgn lTHBWMYAd2zjpIG06Sdwvv1pw1MfhxIHA0xKHeXL9ai3k0SL8BFp7r7BRtk6z8wez1oJ IfSB4sITCySJcHfcQIADJH6BLKZQGc8FqaXoT/4D+JmgxKL7nfn1BGOXEFS+5admLGN0 PM7nRPsdYyK1hGFwGVNuC50vKhc3LLOxKTnb3x4WFU9Fo4wQgoRyvx5DuFu1ma3xZR95 FRxg== X-Gm-Message-State: AOJu0YwJwttSWohAsp/LzgBbmgvu+u5d4gYU8B/dSDW5rJYZZiG4Dqpm p2MqH1q477UV9MglU0OyQfacI3ZYQIS/7JPt8FS308D/P+S8qqRkQujlry5LbbET3QK3VXgyjY6 AS+2g5OYvvuialgB36sjN29Mr37v7s5JBA4ul/E1JLTarKiNwqSt05XYhU4xnEQ== X-Received: by 2002:a81:7e07:0:b0:5ef:4a7d:2426 with SMTP id o7-20020a817e07000000b005ef4a7d2426mr4480575ywn.31.1707310566090; Wed, 07 Feb 2024 04:56:06 -0800 (PST) X-Received: by 2002:a81:7e07:0:b0:5ef:4a7d:2426 with SMTP id o7-20020a817e07000000b005ef4a7d2426mr4480558ywn.31.1707310565774; Wed, 07 Feb 2024 04:56:05 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUbvebY0DHLBbpoXm/fnjGZulxd8pCjjhojAGkGAcd7WpnxeWBRBg67IuDeNig/ivTHU5HwTf5TDBpkbJnn8+VMCIme8IfMhsqPH4BQM262p9qwit0mfUit90B4ocwSCyFYuWmusQmjG+/qy30hyRqQPN800MF4 Received: from ?IPV6:2a01:e0a:59e:9d80:527b:9dff:feef:3874? ([2a01:e0a:59e:9d80:527b:9dff:feef:3874]) by smtp.gmail.com with ESMTPSA id a10-20020ac844aa000000b0042c22902ca2sm489302qto.81.2024.02.07.04.56.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Feb 2024 04:56:04 -0800 (PST) Message-ID: <6fdbeed0-980e-4371-a448-0c215c4bc48e@redhat.com> Date: Wed, 7 Feb 2024 13:56:02 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] KVM: selftests: Fix a semaphore imbalance in the dirty ring logging test Content-Language: en-US To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Shaoqin Huang References: <20240202231831.354848-1-seanjc@google.com> <170724566758.385340.17150738546447592707.b4-ty@google.com> From: Eric Auger In-Reply-To: <170724566758.385340.17150738546447592707.b4-ty@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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? Thanks Eric > > [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 >