From patchwork Mon Jul 10 23:05:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 701104 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp5424296wrs; Mon, 10 Jul 2023 16:09:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlGfAFDNIY3BN8CWbZ1MdrUuEsVUJrJVTAxyBwgM47z1GZBso2qwS24tGIzyt3L6lFTKhoYO X-Received: by 2002:a05:622a:24d:b0:403:ae16:3f49 with SMTP id c13-20020a05622a024d00b00403ae163f49mr6128514qtx.1.1689030579470; Mon, 10 Jul 2023 16:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689030579; cv=none; d=google.com; s=arc-20160816; b=VUvDhFMieWCjXLvGq2L92N9OJvi5ZVwr1QD84SnVMgr4P8u0j2jOFxqCK7dTHIeLG4 eIjirRBvIfkte3A6/hEjS5RsrHhELWGD0ATyf19WhDpFL1ooaCuLghZOkYEMUupARkXE yKYErLgZaytJ4ZSPYmODkqRKXMjlmjd3uBKIGAI+8AzWHCxoTtKpyxhIg0Jp+D8MOjX3 0bdTR2k1NC2Iqk+ELNb/uC0SB95G+bRDCNh3hUBZB0ii+mXcU+KrDX2KbkRg39OtsVCD Y0DFtwczsT8wDus1dbsKNfoe44oWAt66jeJv3vR7R7VFUlg9dHaSc33XmngZbMZOYSi2 fVpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6owJwf2FkV6CUX/2hjmF+Amv1PF8cnNyFJlq3/wOoXQ=; fh=bKEfGR6OWIOEmawFrsUeGlunEsgeCf73L/I7Ij4GOvk=; b=Oau1TyD+yX4oSB1M4Y8OODMS5WyXQklvd+EGUPxkPkoe6gc23wTyFzZUIggX7fKr2y 9G37qhF2obyZbw9iaKmQRCwQzgtFQYtKzkau23/k7hJTUq/CApOwPLHrGPx9zj3joQ0D NjGsaaWQSPtFcFmQP/xGhtui1z9rUorOTT6q9RS9nx7e0uv9UUI1W7U8Dw2AQYW9bOOF oQEX4aSk1kjHnLfwdvWLAGh1EcmbTXxnv+w8g7oZt87oe6jfzSEzUrXRNRtTsdJQw+Ib RRbEDn8qVnpuaj4Ok3biU8/A6W77pfYJzj2cZxNeffqzk38woPjSnq/SGHhP+mg1X8s0 rF9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HVD60UHH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id h7-20020a05622a170700b00403996b66ffsi330877qtk.359.2023.07.10.16.09.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Jul 2023 16:09:39 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HVD60UHH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIzwi-00049C-3v; Mon, 10 Jul 2023 19:05:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qIzwe-0003ZA-Ed for qemu-devel@nongnu.org; Mon, 10 Jul 2023 19:05:28 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qIzwP-0004oi-Re for qemu-devel@nongnu.org; Mon, 10 Jul 2023 19:05:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689030312; 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=6owJwf2FkV6CUX/2hjmF+Amv1PF8cnNyFJlq3/wOoXQ=; b=HVD60UHH9nAcwMaoqc0sX0nl22LcovFePQrzwuaoZsUsnh2N135mFJQ5nyMQuEHNbQ3i82 kGFN3/41LugFkwXoix1VzHeXZWAmq+NbfoUbouAalNXNlAelsjsxA1EiWYf2ELMuPTN/G1 4qV5hEgsIKfc8kOcamU/bqLAp/ExOCk= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-153-OedXWG-nMO6ol65hFNEDpg-1; Mon, 10 Jul 2023 19:05:08 -0400 X-MC-Unique: OedXWG-nMO6ol65hFNEDpg-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-3141c6f4173so2720879f8f.1 for ; Mon, 10 Jul 2023 16:05:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689030306; x=1691622306; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6owJwf2FkV6CUX/2hjmF+Amv1PF8cnNyFJlq3/wOoXQ=; b=fmC8WpDUgGbNz9JZl2Zmo6/kXbY51TgsIVIfBnH6/18FBudEki7YGh6OCzR8G7WfSf jN2B9d33XRrD2Iek0qyEswbDK/lsdacwvvRxAYDQbqOVwOQaMF++JwTsRIpB16WWEll9 f4e1h+V2Mple7a95lpjmn0MqbTw3aCEFwhEyPRX1WByvShcRI1P2fgVFFgVH7chmwGF7 pWLP8TWAP5EOGBcS1626Fo4at9gW/lWm7lkOWOUv0s9FFJg2oIsmJiaSHroVIIKjq+JT uGloPlVzjqXHOXm+0PQs8FtLSkTjVniNPtUojtAJEod0tFO2o7PTrwzHww7C1QNnU81j qEIA== X-Gm-Message-State: ABy/qLY8gEdbEJyUdnaiDKWmqB+ThlzVXCYr59RVi3s/JV+GFPuiqL+V Dj70mk/HzIJ/wnfVDCBD53cEDLPgq7E6BbS1bZNxCMUvMfpst9ef6hhC3BFBztues0ceL6jgB3D o/y0E1A0uCWPjxzth7AdvrYKRWU9sAIdJ9CwunoYQGub4/zA4WcDfQBQ5yEl3kgdSq/HB X-Received: by 2002:adf:ec0e:0:b0:313:e57b:e96d with SMTP id x14-20020adfec0e000000b00313e57be96dmr11872738wrn.36.1689030305907; Mon, 10 Jul 2023 16:05:05 -0700 (PDT) X-Received: by 2002:adf:ec0e:0:b0:313:e57b:e96d with SMTP id x14-20020adfec0e000000b00313e57be96dmr11872727wrn.36.1689030305703; Mon, 10 Jul 2023 16:05:05 -0700 (PDT) Received: from redhat.com ([2.52.3.112]) by smtp.gmail.com with ESMTPSA id c3-20020a5d4cc3000000b00311299df211sm578797wrt.77.2023.07.10.16.05.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jul 2023 16:05:05 -0700 (PDT) Date: Mon, 10 Jul 2023 19:05:03 -0400 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Cc: Peter Maydell , Alex =?utf-8?q?Benn=C3=A9e?= Subject: [PULL 55/66] include/hw/virtio: document some more usage of notifiers Message-ID: <661dee7bd08dd93d15b898d43821bb46b2aa422c.1689030052.git.mst@redhat.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Received-SPF: pass client-ip=170.10.129.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Alex Bennée Lets document some more of the core VirtIODevice structure. Signed-off-by: Alex Bennée Message-Id: <20230710153522.3469097-7-alex.bennee@linaro.org> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/virtio/virtio.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index 631490bda4..c8f72850bc 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -150,10 +150,18 @@ struct VirtIODevice VMChangeStateEntry *vmstate; char *bus_name; uint8_t device_endian; + /** + * @user_guest_notifier_mask: gate usage of ->guest_notifier_mask() callback. + * This is used to suppress the masking of guest updates for + * vhost-user devices which are asynchronous by design. + */ bool use_guest_notifier_mask; AddressSpace *dma_as; QLIST_HEAD(, VirtQueue) *vector_queues; QTAILQ_ENTRY(VirtIODevice) next; + /** + * @config_notifier: the event notifier that handles config events + */ EventNotifier config_notifier; bool device_iotlb_enabled; };