From patchwork Thu Sep 2 16:50:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 12472163 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=-11.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,USER_AGENT_GIT 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 5187CC83029 for ; Thu, 2 Sep 2021 16:52:45 +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 BA2DA610D2 for ; Thu, 2 Sep 2021 16:52:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BA2DA610D2 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]:60056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLpxD-0004Ua-Og for qemu-devel@archiver.kernel.org; Thu, 02 Sep 2021 12:52:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLpvP-0001qn-El for qemu-devel@nongnu.org; Thu, 02 Sep 2021 12:50:51 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:58819) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLpvK-0000AX-PZ for qemu-devel@nongnu.org; Thu, 02 Sep 2021 12:50:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630601444; 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; bh=TuD82sa8ZbKDuLj1f0/ZDwnCG6IUjn8ZqsERz54t99U=; b=OvYuRoxw5W1BoB5zeamzRs5VLb8NEm0x80gCpFV0KhEz/1VfFKOMEgtZd5iS6Hcw9d8dPS tEzAQlAqHvuSexlneh2Zi2zA5FeNk90huw6SeAjEA3/J2wrhwpmr/yf8OEoC2ZzgHl5xDQ LUQSbDroTkxlyoMzNWgsQtU0z8lBbNo= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-509-nuIeYc2zOYmqWcZcL5BibA-1; Thu, 02 Sep 2021 12:50:43 -0400 X-MC-Unique: nuIeYc2zOYmqWcZcL5BibA-1 Received: by mail-wm1-f70.google.com with SMTP id u1-20020a05600c210100b002e74fc5af71so946824wml.1 for ; Thu, 02 Sep 2021 09:50:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=x1xVyQauaixwRXXUdEbHFOnKdOLNOwH6aJIYBVHQSOA=; b=MVp45hroojnjB+wH58hPxlrSBUnvsdOhTVz+GwCkF6NGAPYcSwz9o1ns/SjKtyRa+I NjwAFjfOL8RhLwfGW+8kS/Gg516K9N9rs0aNS/VCvWR5D5WKzclh8R766VwZaw139xip Yrm7+ISRbxhOEfNAv0L1HWdLd9irORGZFYgNFzMLPmWTArNh0iZ2MMwMtCWAHjKZSQu9 knnHHgxAVEc1MiCvwE+j9ZpkwoywytSl0jitAypHUybbEOC8us2juS+8mjuDqts2faJt GH8SJXomEEAPd7Cf8lnIW7vwnwsH8YGyj2sVe4Dv7Bpim+igll+RpkshiicRGhUPhF8W kQrA== X-Gm-Message-State: AOAM532VkWQcw8M3GzQN4/uPL6uNSYcIbFhHTBorpRbXHfoBAJGUfgZv HbVcJgh7qYiSQa0uGLKHMIL8ISdlNyUjtf2PD69f1BAxs7UT12FaomfUGA6aKN2ScUvAezP+BAt RAb+Qo0PoVmLBJRE3AhaQ0oNUCUPaWpLl3RdZvT1ooW+WC9epYFLxDQI8yaF3HqIR X-Received: by 2002:adf:fd8c:: with SMTP id d12mr4879799wrr.21.1630601441740; Thu, 02 Sep 2021 09:50:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjKnq3OZ4nXwn4fyIJWESQkWzKZu5CDCQPSApKCG3GkAJkubJ5JJafKhiRixYYOK4bPzGQGw== X-Received: by 2002:adf:fd8c:: with SMTP id d12mr4879772wrr.21.1630601441496; Thu, 02 Sep 2021 09:50:41 -0700 (PDT) Received: from x1w.. (163.red-83-52-55.dynamicip.rima-tde.net. [83.52.55.163]) by smtp.gmail.com with ESMTPSA id o15sm2458762wra.3.2021.09.02.09.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Sep 2021 09:50:40 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v2 0/5] hw/virtio: Minor housekeeping patches Date: Thu, 2 Sep 2021 18:50:34 +0200 Message-Id: <20210902165039.432786-1-philmd@redhat.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=216.205.24.124; envelope-from=philmd@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.39, 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: "Michael S. Tsirkin" , Jason Wang , Cornelia Huck , Stefan Hajnoczi , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Stefano Garzarella Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi, This series contains few patches I gathered while tooking notes trying to understand issues #300-#302. 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(-)