From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA0AEC433EF for ; Sun, 5 Sep 2021 15:13:57 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3ACE360C51 for ; Sun, 5 Sep 2021 15:13:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3ACE360C51 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:50124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMtqG-000610-01 for qemu-devel@archiver.kernel.org; Sun, 05 Sep 2021 11:13:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMtpN-0005Kx-PD for qemu-devel@nongnu.org; Sun, 05 Sep 2021 11:13:01 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:59291) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMtpJ-0000Sd-Ms for qemu-devel@nongnu.org; Sun, 05 Sep 2021 11:12:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630854776; 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=ReQvU9NvDkPM2xLIyZsUxSh30ulGJoWpjU+8wEYq9x0=; b=eKDj0pj2v+boik7SYQtsnjhnJi0IHXah1SPz9B/iz0ZG+xIaDEsjDQEqbjW6vztplFvS0J bSihZmjjQsLhHUnsAvcUxGQj3Wazfvs+lBjGEOizcdKbCPeWPUCA/Qd4Ksr2TXBweR+HOY QbvhlqIodlLI+488/KY4gWURVRECv0U= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-446-JckuRCbjOvmJiyMiTkwngw-1; Sun, 05 Sep 2021 11:12:54 -0400 X-MC-Unique: JckuRCbjOvmJiyMiTkwngw-1 Received: by mail-ed1-f72.google.com with SMTP id y11-20020aa7d50b000000b003ca1ef38cf3so2413485edq.7 for ; Sun, 05 Sep 2021 08:12:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=ReQvU9NvDkPM2xLIyZsUxSh30ulGJoWpjU+8wEYq9x0=; b=TBPdHnV1CJEi1JrwEfCbExKP60aSHtpL66Zeazub2/N6fFJWoqfX/zEYppH2CauTnL iax5Y+KBoA2APofCmNcf/sOZnegmh3gQ6xRe2KC19+IlJGFCFx7ZwQyxwd6XsOL5z+/1 QbT4VkFvWTVqeLEYTU0yqz3ZXywza+/ZPORIjChEn6e7+3/12c+LHlmjCgBQE9mPX16W ZeSEHmF4sQEUF4amsfXUDwpQXoVINgnZG82e0LiZXO5iz7ErdOhhrrYY/KUmEEj9Y7nY EmPNRK/WQlzV4KLqtEV8hmCbjAGUk2cY1lhtsgWoLeSll30r2UAAZdp94Q1/WGJd305B JosQ== X-Gm-Message-State: AOAM532JZSazbIXWbg88swcaZLW5ekHlznuVobnaT8g9r5QVxZ2k3B6a BfWV3bqNvXkprg/iha2QI09yfKwLD8UqYgmrIKkx3yV8cGc4Jl/b3CoDwhRzqnFWmGSKjTHVFlG NRPgtljneyqMpzFA= X-Received: by 2002:a05:6402:1c1e:: with SMTP id ck30mr8900623edb.103.1630854773811; Sun, 05 Sep 2021 08:12:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKRvdfUwyTPlc2UPAOraiYLh0Q+G45YBix9KZmpZ7FjYAFnyoR9zAy6amWvpO0Ug+FuS3lCQ== X-Received: by 2002:a05:6402:1c1e:: with SMTP id ck30mr8900614edb.103.1630854773651; Sun, 05 Sep 2021 08:12:53 -0700 (PDT) Received: from redhat.com ([2.55.131.183]) by smtp.gmail.com with ESMTPSA id f10sm2463303ejc.51.2021.09.05.08.12.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Sep 2021 08:12:52 -0700 (PDT) Date: Sun, 5 Sep 2021 11:12:49 -0400 From: "Michael S. Tsirkin" To: Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= Subject: Re: [PATCH v2 0/5] hw/virtio: Minor housekeeping patches Message-ID: <20210905111225-mutt-send-email-mst@kernel.org> References: <20210902165039.432786-1-philmd@redhat.com> MIME-Version: 1.0 In-Reply-To: <20210902165039.432786-1-philmd@redhat.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mst@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.391, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jason Wang , Cornelia Huck , qemu-devel@nongnu.org, Stefan Hajnoczi , Paolo Bonzini , Stefano Garzarella Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Thu, Sep 02, 2021 at 06:50:34PM +0200, Philippe Mathieu-Daudé wrote: > Hi, > > This series contains few patches I gathered while tooking notes > trying to understand issues #300-#302. v1 was includes in my pull request already, pls send incremental patches on top. Thanks! > Since v1: > - Added virtqueue_flush comment (Stefano) > - Call RCU_READ_LOCK_GUARD in virtqueue_packed_drop_all (Stefano) > > Philippe Mathieu-Daudé (5): > hw/virtio: Document virtio_queue_packed_empty_rcu is called within RCU > hw/virtio: Comment virtqueue_flush() must be called with RCU read lock > hw/virtio: Remove NULL check in virtio_free_region_cache() > hw/virtio: Acquire RCU read lock in virtqueue_packed_drop_all() > hw/virtio: Have virtqueue_get_avail_bytes() pass caches arg to callees > > include/hw/virtio/virtio.h | 7 +++++++ > hw/virtio/virtio.c | 39 ++++++++++++++++++-------------------- > 2 files changed, 25 insertions(+), 21 deletions(-) > > -- > 2.31.1 >