Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1684477lqa; Mon, 29 Apr 2024 16:31:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXrz9jX5NTEIwsf9go1IZ5p8mNkOrqADaP27Ybr76914O3dck4IEToE7+idI45pIAkiRF1ZLHD6ggA/GQDRQYLrPs/qATqIKncqgLzqcw== X-Google-Smtp-Source: AGHT+IHRCDu/iwyZme+Yjc8HB5T0laR9JKpx8e22yaa2KEJw9RfUqzojLnOKwd3kRCvVT8sbj7SF X-Received: by 2002:a50:a419:0:b0:56e:2bfe:cdcd with SMTP id u25-20020a50a419000000b0056e2bfecdcdmr5715055edb.1.1714433497608; Mon, 29 Apr 2024 16:31:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714433497; cv=pass; d=google.com; s=arc-20160816; b=lePEea+gDbnfArKDIQpfID3huYnNXBLbjQOishcOKtlc3fk8pzlZm3IurptYEXWj+b IVlrAftXYh0KIxKPEvfX4D9gFYf2XF6awXnd1pQ6nd+EJDuF/AqLXoNMF5XoTWMdaHnR nbzJeLRj+ZNl8HuS6hH2AHw07vvBnsYP1Z9JbcslDHh+x8mVoLjeDMYddbqx3b2QyNMb K3qYnrvq/0r6aCe2KU54tPN27FJ6IE4Vpj5Hqh6vNKZPEWFct2gSeEe6BxSAsH7ushZP TFdXxwOL7UErxl7z46nG5MbyUbjlI+0KiaDT1qemHHL6rp9iFGiovYjx9HZPIIvQT1fz dATQ== 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=WSjdbinHyW1mkl/2RciXGi7LJcTI4CBgysLnfFPLy8s=; fh=Dau/tIgh+N1B90M6ve4wUIizIke1y9MP/h8uTTUZ1rk=; b=Upub7Nm0pgo/WHIhyfByVVxug0MyjbhrvroOJbPwCJE1D6Tq+QaCxVVDBtmlM0K0y5 oNSs/fv3QyDwaoTfwUaDlY95HiXGFlYzwDPd1PoqDlNmWmWOLNkmEySuargLcZ9yXdDZ /fanP6xCPOO+ki1kjMm2QejRrRV9Ta/lT0K1xDmStznWvl/j87aYESNzMXEeTe/K2Kb5 a//fCpUG4xG+ps0qKSZ2O8bSJn9NHP8IIZQ60XMx62HbYSNvTWQ6WX93LuUuUIZ1Y9YE FFd69GDYkFzObGw+pqjLfdXshPhDStqsM5E5QYuKwrVSQGxGHQuHIwjgPaRYynCuvPoL f73Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ereFXtia; 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-163138-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163138-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q3-20020aa7d443000000b0057222c7dd89si8294911edr.640.2024.04.29.16.31.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 16:31:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163138-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=@redhat.com header.s=mimecast20190719 header.b=ereFXtia; 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-163138-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163138-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5AB281F220F2 for ; Mon, 29 Apr 2024 23:31:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E3BB194C6C; Mon, 29 Apr 2024 23:31:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ereFXtia" 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 21F9117BB1A for ; Mon, 29 Apr 2024 23:31:28 +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=1714433490; cv=none; b=uioh/FDaO57vfResTS7y9aJOLIBh+un/8CeFFdiTcYM0n/ypQuABAs2wTPRzS7ZCi7XbVI/thWI8a0COQzb2afj1Q1j4KAzs5x6wQdAS8PsXJupvnyJ14Mi3pKP7qfLT4OHwIcZAgrMo5BFgas0xYvTDr4yzdFjux7OUBfzNod0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714433490; c=relaxed/simple; bh=uqj4V0skS+CEC8NZm0u8vNAfU7/jX2gON652FcP3oRc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ahl9mqVEwTlxIM6lXzr9TUOBAZ+7NZMmXETwJS3Y+7KDn/BtsFOlmVjAMDF0jf2cOphS1a6odFUiQlK/7kdFq6XMCUSKCDwZf5KSb89pqldWCiSZxlIX67FxJD9TOLaZNJkMZO9UB7sO5pwEUEmm/w0kwog6NypWjgpTNH8NaXA= 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=ereFXtia; 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=1714433488; 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=WSjdbinHyW1mkl/2RciXGi7LJcTI4CBgysLnfFPLy8s=; b=ereFXtiaQLeAKWXtmBsuzi5QzJhHc6x+EJogTgw+pT2OLVq0O5rO6Y4CD7HCScghr9wUF/ 09tzvqyIfRkpkFomIazxcOxyJFUZp3I8CSZOguWKC3r1stwE2d6kp6ofgO7qAOZH98M8ju 1anx3qLbDCvR+dlHjFP/P0oTDBrq2N4= Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-378-ytkIzzI1OFu2L0SXNU7vyA-1; Mon, 29 Apr 2024 19:31:27 -0400 X-MC-Unique: ytkIzzI1OFu2L0SXNU7vyA-1 Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-1e2a5cb5455so57818625ad.2 for ; Mon, 29 Apr 2024 16:31:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714433484; x=1715038284; 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=WSjdbinHyW1mkl/2RciXGi7LJcTI4CBgysLnfFPLy8s=; b=OWUkLt3YEhsToBWKlsRTnMDcG2NhVXNSsAikmiac0dd0egDCAdMb4SPcYerCDDKDdw YQg/byNgC5Q2jZWHgwUIXrKgONmZx6e03uG9NzrZpo848FuxBU2IaGwmvIl64o5091w6 DfQotM/e7PsqTxV8tGWWRuTbjnG1XKLCaNGwZi4pkUcB+DV8TOTEN+NK4spT7rU1PqaZ Qh6HITs3cJYOsK4lBVtWIPgZT6YL/u52xD6elGMemEyOk3o+E9QXBpJmAxMD6fGFsLe2 ML0aW0yhZP7ta6N2wNrJMH+jmBBUuTlCOGdR1JVu0CT0AXyutJHSDpM1t8GSo+JV5Oc1 9c8w== X-Forwarded-Encrypted: i=1; AJvYcCWlRi6gIwIXyWqPaT0FVx/VRTEtzqVKoU1E2AwbCJ/d0lfyZlQiM0i+drJoB990pDCjoD+F5tr5AegDHrht9zEbxiAtr5+pjL5VYP6t X-Gm-Message-State: AOJu0Yz3yoLrrGmzoJXIwIhH4vB4qKbsSyAqsWHAdHkKIRiNe1hklWsI UUazEk7ULbDiEfWiS3NogSEYYzCHeK2a0E9x1ARg2e288GvDCr/CzgR4SAW1AGFMh/ssguIyORJ rOUTLWgBo/i6NJ1wWch3fp32zlRnQPvA7TqvXKuX6QaJkWMnhXfRZaWUuzmBJCw== X-Received: by 2002:a17:903:2409:b0:1e9:a0ce:f618 with SMTP id e9-20020a170903240900b001e9a0cef618mr11564138plo.69.1714433484114; Mon, 29 Apr 2024 16:31:24 -0700 (PDT) X-Received: by 2002:a17:903:2409:b0:1e9:a0ce:f618 with SMTP id e9-20020a170903240900b001e9a0cef618mr11564121plo.69.1714433483816; Mon, 29 Apr 2024 16:31:23 -0700 (PDT) Received: from [192.168.68.50] ([43.252.112.88]) by smtp.gmail.com with ESMTPSA id u17-20020a17090341d100b001eb3d459143sm5443739ple.48.2024.04.29.16.31.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Apr 2024 16:31:23 -0700 (PDT) Message-ID: <4dbd2f9e-0769-4b9f-89af-d864f404c86a@redhat.com> Date: Tue, 30 Apr 2024 09:31:18 +1000 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 v2 0/4] vhost: Cleanup Content-Language: en-US To: "Michael S. Tsirkin" Cc: virtualization@lists.linux.dev, linux-kernel@vger.kernel.org, jasowang@redhat.com, shan.gavin@gmail.com References: <20240429101400.617007-1-gshan@redhat.com> <20240429144955-mutt-send-email-mst@kernel.org> From: Gavin Shan In-Reply-To: <20240429144955-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/30/24 04:50, Michael S. Tsirkin wrote: > On Mon, Apr 29, 2024 at 08:13:56PM +1000, Gavin Shan wrote: >> This is suggested by Michael S. Tsirkin according to [1] and the goal >> is to apply smp_rmb() inside vhost_get_avail_idx() if needed. With it, >> the caller of the function needn't to worry about memory barriers. Since >> we're here, other cleanups are also applied. >> >> [1] https://lore.kernel.org/virtualization/20240327155750-mutt-send-email-mst@kernel.org/ > > > Patch 1 makes some sense, gave some comments. Rest I think we should > just drop. > Sure, v3 has been sent with PATCH[v2 2/3/4] dropped. Please take a look when you getting a chance. v3: https://lore.kernel.org/virtualization/20240429232748.642356-1-gshan@redhat.com/T/#u Thanks, Gavin