From patchwork Mon Jul 10 15:35:08 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: 1805911 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=fD0hnaXh; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R07Rr40trz20Ph for ; Tue, 11 Jul 2023 01:37:44 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIsvi-0005we-4r; Mon, 10 Jul 2023 11:36:02 -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 1qIsvW-0005ph-KC for qemu-devel@nongnu.org; Mon, 10 Jul 2023 11:35:50 -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 1qIsvG-0004ls-48 for qemu-devel@nongnu.org; Mon, 10 Jul 2023 11:35:50 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fba8e2aa52so52003305e9.1 for ; Mon, 10 Jul 2023 08:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689003331; x=1691595331; 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=ydjjuLF1zit1BjbAeuBjGkyFl+6yYLQdGkw5bViFdwU=; b=fD0hnaXh2COPn2kr6AnQqYWkXVUFSuh5n6nxeoNsaXYX+hOoU9LitbfcgVIhd20Fpr hGcMAFPRVTanGVKk0H/qTyoF2t2PoJDd2XGF1g4+sAh6JuHwerlgUUBbE1SrdJ8WbQs2 uzZ2vQnEGqunCqdU6kB+hO4BX7jO/yrAqYVjocx7f4/qe8IntB6u961WWPyV04yeYxQn zxfVbMy7pe98kS0khKQG+To8Rmgh1TgTEIL9/3AttAR6SbvHRRNRgpooYEeYBNu7IF8P i5qlFhZn5koF2m+YDecMsuQgQS08KDFc9By0nJ1A7dIOKA5uqEfXjRBrN2pwH5ohFyqv ehAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689003331; x=1691595331; 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=ydjjuLF1zit1BjbAeuBjGkyFl+6yYLQdGkw5bViFdwU=; b=CllGdhFsUcxdUoVp4KzA2rR7VrpaRx6DwcoHep15hAKf8fZDPV/Gdb6P+EaYotjAvx 4+QKRoU392wvDZrpz4/lwR3LN7ssR9TsaX3/SbCkZhQtJFOvMX/y4ZDKO4GdW9q/2tKO MAadHuBRDDgskwW8GD3CiLiuDs8OfFbdkab9ntSB5lq5IwFGHRcqkDl+xL6AhlXH+nca EO5kERQPLiy737VjChPVbVFTXPY5c0odPuI38alI4SA5Bvw+OTlp4zTEDqt+DeupHYEA vzlrWqEzjI/U7p52IG2h/j++dquRE+YCNsTKfo127+rsKgfTJb4jIK76rxMYlzQsw0tv KLYQ== X-Gm-Message-State: ABy/qLYPyUWFXHnFXHPTQwFeGpk6UFcEeh4RV4ms61F3MBU89/2W1maw GLqqeKToclb0IaniiMrvnbQmIQ== X-Google-Smtp-Source: APBJJlHDjZk4jwjhWljPy6AHuzg+kadCeitY5eh0UO7BAIl247+10TCcMIHYu2RusrxRmen3cgGmqw== X-Received: by 2002:adf:ebc6:0:b0:313:f54a:a842 with SMTP id v6-20020adfebc6000000b00313f54aa842mr11805915wrn.63.1689003330902; Mon, 10 Jul 2023 08:35:30 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id z8-20020adfdf88000000b003143bb5ecd5sm12010850wrl.69.2023.07.10.08.35.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jul 2023 08:35:29 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id D78C41FFC1; Mon, 10 Jul 2023 16:35:22 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Jason Wang , Viresh Kumar , Raphael Norwitz , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , qemu-block@nongnu.org, Eric Blake , "Michael S. Tsirkin" , Mark Cave-Ayland , Kevin Wolf , Markus Armbruster , Gerd Hoffmann , Mathieu Poirier , Hanna Reitz , =?utf-8?q?Alex_Benn=C3=A9e?= , Erik Schilling , "Gonglei (Arei)" , Eduardo Habkost , Fam Zheng , virtio-fs@redhat.com, Stefan Hajnoczi Subject: [PATCH v3 06/20] include/hw/virtio: document some more usage of notifiers Date: Mon, 10 Jul 2023 16:35:08 +0100 Message-Id: <20230710153522.3469097-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230710153522.3469097-1-alex.bennee@linaro.org> References: <20230710153522.3469097-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, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=0.01 autolearn=unavailable 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Lets document some more of the core VirtIODevice structure. Signed-off-by: Alex Bennée --- 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; };