From patchwork Tue Apr 18 16:21:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 674520 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp58865wrs; Tue, 18 Apr 2023 09:23:22 -0700 (PDT) X-Google-Smtp-Source: AKy350aXR7o8YOUx7B6YECQI+2GMqiILSby0x9tuu5z/nhj3S4pvzCFD7caIgYHZT+6lTG+VECsP X-Received: by 2002:a05:622a:50:b0:3e6:499c:6849 with SMTP id y16-20020a05622a005000b003e6499c6849mr612603qtw.10.1681835002265; Tue, 18 Apr 2023 09:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681835002; cv=none; d=google.com; s=arc-20160816; b=aj4RYF14ixCyPi/3D66kucEkfjwvirq/nGYbF3v3rHjwCNgdoqPdVQXnEVOjRjiHg7 fYSOLazPKNBQSpGX+Nc1WT4P6EKe2g1HpfLPoU7/9m93OhvhAvujMPv0R86szPsx0QWg ydHFXhe9JZTETuVCLBn4ZitXBEGW+ThEM4PRGmXPIBFW9q3FnmXROozIVQHnwXT1kqyU 0SOxrTTWYklcWLZ7oGYfw/TJATNO1A3G1o+Z0b4hDnvg1+6bZIHgIakU401IcRGbsL+J OL21an8/GAqBmJzmcY9AltjMY0aRqC+duizSjaGsmO6IKffmA1ASpPW03Q/FD84d2UuS k+KA== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=uMkpUFkutd+rkxciDVz0OwgC4E2pyiYQdv8Xz2UBqBQ=; b=vEG0CSHZeTjssnu+4FEjBczhDLYHCTHHyBuMlP5rtzBPffyW2wBmt+eL63rENOBOso XhkQgIpU7OP3emB1HjPzoxaBGYMmqZweIzOBcglLH4lZHpOAvcA+cI3E5XZTt2xU/7kd IwHut7vv7xxpVo24409KV/Qnp0LuZYJdqcRQAlTuuv0KcpIIxWdlDBPp152q4+x9MoWo 1e5uD7Ljuh9CCxFHM6aVQf5IxmmC3U0AlmT1cUEqtFCr0PjZReUi1YuCeqqnrkXPv5lI sfJk/SD4D+KHjQtqA+swhl43COg68LznnMF3QpedIOiv3memYAu2c+3MqRVgmz5tRdfU hTbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="pYO2bM/H"; 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=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y19-20020a05620a25d300b0074ac130d169si7817148qko.745.2023.04.18.09.23.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Apr 2023 09:23:22 -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=@linaro.org header.s=google header.b="pYO2bM/H"; 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=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1poo5V-0006mw-Uj; Tue, 18 Apr 2023 12:21:49 -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 1poo5U-0006mI-N6 for qemu-devel@nongnu.org; Tue, 18 Apr 2023 12:21:48 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1poo5S-0001B0-8B for qemu-devel@nongnu.org; Tue, 18 Apr 2023 12:21:47 -0400 Received: by mail-wm1-x32e.google.com with SMTP id d8-20020a05600c3ac800b003ee6e324b19so143172wms.1 for ; Tue, 18 Apr 2023 09:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681834904; x=1684426904; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uMkpUFkutd+rkxciDVz0OwgC4E2pyiYQdv8Xz2UBqBQ=; b=pYO2bM/HxOUrYC2DCsCRsjUUil5wQCYuoiMIhEF3v/4pvUZw5SxTR7GpxY2ZJ++QAw oPlH6J74QUxKDX2bcgL2k2W5n1rnYaLSnBCD0xpyAqUaM5DGpkcwL5fBqFZ0IoK97QN/ biv1o3AT+5wDuC2L2ewl1wv8Vt9YsNUgAko0HRw7QGGBTb7e23NClAdTMtFSKZQRJtWV 1BYFEkSJ0axr1mLY/wzHlubuAh8kWI6w9616SLVuGb+wPGZqWk5r1AQMAaPdWcajJuY5 3zWODqYBwvT6bKsIuZG/Yf4UQtzHE514S8e7WxxiQP/Yz+tMbDb35wWY/5IM4a2+HhmU AK2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681834904; x=1684426904; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uMkpUFkutd+rkxciDVz0OwgC4E2pyiYQdv8Xz2UBqBQ=; b=KXwVvvcViEq+AQcF0gXfdSE4gDH0ufnoiy8vv80mGnP/AfJ+y+Q6ByhXdSjGIE+ERg x9Cp5ODCd3h/sdk5GgBE0cNtdu6HtyRE7VpQB5PT53dBO5U6GvDseMoCIPEP/s3pA1Fs S1pMp6bcXqoPmDHAW5kSUsrfq7KiT7YiBweJblnSGT1uRV0wiJmEpnQ3W0JtLNC54vJc bi2Hqzp2GH1UFYov0IUTs+5xxezQHirZ4/xRt33vz3qsTRFiYO8JJ0Rk8tIblFVXoYow K4XbF2MmQ0iQzXIbWNnQCDIcS86s0aOSGvHA/Dd4Lh+rQ0LGUABz87Qzb/beQgUkfR73 LTJQ== X-Gm-Message-State: AAQBX9cRaKQ6cgOv1g0FfTuw8IUQzhhbzJJBpgDBTrF/Fe3sSLNtX5Iy GE7b2GnsaE/kK4WYIyF5T7g4MQ== X-Received: by 2002:a7b:c4d3:0:b0:3f1:76d4:d43f with SMTP id g19-20020a7bc4d3000000b003f176d4d43fmr3771383wmk.8.1681834904592; Tue, 18 Apr 2023 09:21:44 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id g23-20020a7bc4d7000000b003f17300c7dcsm7279114wmk.48.2023.04.18.09.21.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 09:21:42 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C471B1FFBE; Tue, 18 Apr 2023 17:21:40 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Daniel_?= =?utf-8?q?P=2E_Berrang=C3=A9?= , Eduardo Habkost , Viresh Kumar , Mathieu Poirier , "Gonglei (Arei)" , Markus Armbruster , Erik Schilling , Jason Wang , Mark Cave-Ayland , Gerd Hoffmann , virtio-fs@redhat.com, =?utf-8?q?Marc-And?= =?utf-8?q?r=C3=A9_Lureau?= , Paolo Bonzini , "Michael S. Tsirkin" , Stefan Hajnoczi , Eric Blake Subject: [PATCH v2 06/13] include/hw/virtio: document some more usage of notifiers Date: Tue, 18 Apr 2023 17:21:33 +0100 Message-Id: <20230418162140.373219-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230418162140.373219-1-alex.bennee@linaro.org> References: <20230418162140.373219-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32e.google.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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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 Lets document some more of the core VirtIODevice structure. Signed-off-by: Alex Bennée Acked-by: Mark Cave-Ayland --- 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 1ba7a9dd74..ef77e9ef0e 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; };