From patchwork Mon Sep 6 10:43:15 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: 12476785 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 A12B6C433EF for ; Mon, 6 Sep 2021 10:50:34 +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 2106960698 for ; Mon, 6 Sep 2021 10:50:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2106960698 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]:55320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNCCu-00055E-Ue for qemu-devel@archiver.kernel.org; Mon, 06 Sep 2021 06:50:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNC62-0004dA-C0 for qemu-devel@nongnu.org; Mon, 06 Sep 2021 06:43:26 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:32816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNC5z-0005ar-FT for qemu-devel@nongnu.org; Mon, 06 Sep 2021 06:43:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630925002; 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=xvuXxVHmv2idZBtpsAw4vPcoZcdSmvGe/MnfTJTOmD0=; b=ivZiub0hI4Ns3wqUDMcFIkrKwlntyCnEifiHLknefykcwzkiYqZrQOaSYDPV0rfNG3bC2s 3qxHcj4RWq7SJJ3Y/Mb94Rx9kADnjOMo+syRRv0OuDM07H0nI32Qn9sNnhB19KWWjANnhB XMHSBanL8FDG0+IqCpVkx1zC0uaZmYQ= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-409-C93F4nmuOBewEHA_GQYJdw-1; Mon, 06 Sep 2021 06:43:21 -0400 X-MC-Unique: C93F4nmuOBewEHA_GQYJdw-1 Received: by mail-wm1-f72.google.com with SMTP id m22-20020a7bcb96000000b002f7b840d9dcso3078322wmi.1 for ; Mon, 06 Sep 2021 03:43:21 -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=9l0bY/MjBXyG8qsyvZmEqValARkh6Su6Uq6Ij+q2MDs=; b=M1DbjiWRsMaHV0z6g6wxk54z9YvA5IK9Iq6BDIvF9Z3hkHw/i+v1m3F+zqPKhKef+I 3Aq4IIYhydLrxCKmne/9J69e6Mxruz0bZsLFzPF98nplGkrf0QZLGAvZf9qqim+aAi1B IoCl9N+5OuTZGNS2XzabJLJ5+IGa6JsWHapDhcVnilhqhGjlyDgVLb7wcr0WiJInISeA GIxcjdf3hsEuym2T2AZxTdB041I+0krR73OQq87yEUV04NN4XrS4rsIyoaLMylrKt+Et xaAxVwPURYXh+z6NHMnsJB8kkXi/F2bwysTXtV+LTSzT3o7aL2+rEhzQCcgDnBuhTr06 mhdw== X-Gm-Message-State: AOAM531+qt24NmnMPclDW7NkGwwp3Vp6OiVaVxzCcGis4FpuSbnh/vOL fwMAP/ck4PX5ss/aOrQXwO/ujRioXKkC8JMnL5q46y/SVALa8MkeAy+ocCLDpEqgd6n/EP3foYh /kgblP1YQN4rwmbuGUKGNmKnN2eoEdBWkN/KWaSkxrA1cWfnyvu4JV0PBlipmq7a/ X-Received: by 2002:adf:efc2:: with SMTP id i2mr12693094wrp.94.1630925000078; Mon, 06 Sep 2021 03:43:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJljQnaS5mHTDBOIiMRZvkAXX1Zcv6IV3egieyT1cjrnJLpm6EgIspEKVJqvgENODLsOP7kg== X-Received: by 2002:adf:efc2:: with SMTP id i2mr12693064wrp.94.1630924999818; Mon, 06 Sep 2021 03:43:19 -0700 (PDT) Received: from x1w.. (21.red-83-52-55.dynamicip.rima-tde.net. [83.52.55.21]) by smtp.gmail.com with ESMTPSA id r26sm6740537wmh.27.2021.09.06.03.43.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 03:43:19 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 0/3] hw/virtio: Minor housekeeping patches Date: Mon, 6 Sep 2021 12:43:15 +0200 Message-Id: <20210906104318.1569967-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.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: "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 v2: - Rebased on top of 88afdc92b64 ("Merge 'remotes/mst/tags/for_upstream' into staging") Since v1: - Added virtqueue_flush comment (Stefano) - Call RCU_READ_LOCK_GUARD in virtqueue_packed_drop_all (Stefano) Philippe Mathieu-Daudé (3): hw/virtio: Comment virtqueue_flush() must be called with RCU read lock 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 | 32 +++++++++++++++----------------- 2 files changed, 22 insertions(+), 17 deletions(-) Reviewed-by: Stefano Garzarella