Message ID | 20230710153522.3469097-7-alex.bennee@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp5243598wrs; Mon, 10 Jul 2023 08:37:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlHqcbk67SudU1zjixtKacr02V6qSHOP5rgZZVGpcLzPhzFdd5H+wit56qS+ugnHFkr2Y6YW X-Received: by 2002:a05:620a:4781:b0:765:66b4:9da7 with SMTP id dt1-20020a05620a478100b0076566b49da7mr12338140qkb.3.1689003463096; Mon, 10 Jul 2023 08:37:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689003463; cv=none; d=google.com; s=arc-20160816; b=X4aMD+EAuSAn8grxzw00iKcOs04gQqZWvHWhzOFciWmMM2AYYzRlxHqyTSFU3eaiEl +Sh5n/6yuHYTRJa/swfvSPvbHuTMJzK3I+KqaMqOHT0MymZ/QIfZd9gLKMdzq1rHtUbL xaGyi/r79FYR7KjIdjitJHneo/+LS3aH/n4n6R+clzFm92hsESEwV7lRLwqMaA6rfH0z RFJi5w6MObh0SH+SWPgYZmd9TiDxVMbtt3CIBC/JU6Rwp3CQBLwgGC9h1viqfabGRucs MgbPsG/ehrIasCsqpbJGNLox6QN+NB5aPHG/d9r1yMomWr1HqJqfs3PgI9vS9fb9lw6l sEHA== 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=ydjjuLF1zit1BjbAeuBjGkyFl+6yYLQdGkw5bViFdwU=; fh=pHpVzH22N3up2JSv0jV3vGkBG2/OCgsTpbbdQUlofss=; b=F7KOlTRDhGR2MlOR1UD68NGSPq//H+i0mO7yDh/pD8Y36ArVBgYrn0yJn94ZfISoTC SutSpiNxMXZ6qMRR1s7iActQkXsW4XQAAz+hRmsRBdvtnq1Rd8OWkdskcPYPqFBJErlw nZXWEnKZMhwnhu20jCYSbAbRHlLGTl7FJ1jaT8gG0KiDKCsXgQZ5DxmRhOl3DOJ5TDMH lnAVgfnB3+IYrwJAAI/llYgqJlBuUBHCiVfAWsvtvZCvt/IKWqA7tGPCDgtur3TgZljZ HRI5uHsdIoFzZtGrpmG+b5PjF9munLVoW8uV7gpZfpuuE2qNUmZaCSEkyrBJVw6WgFTJ GmwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fD0hnaXh; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id pi47-20020a05620a37af00b007655a985a7dsi5713182qkn.380.2023.07.10.08.37.42 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Jul 2023 08:37:43 -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=fD0hnaXh; 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 <qemu-devel-bounces@nongnu.org>) 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 <alex.bennee@linaro.org>) 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 <alex.bennee@linaro.org>) 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 <qemu-devel@nongnu.org>; 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-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?= <alex.bennee@linaro.org> To: qemu-devel@nongnu.org Cc: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>, Jason Wang <jasowang@redhat.com>, Viresh Kumar <viresh.kumar@linaro.org>, Raphael Norwitz <raphael.norwitz@nutanix.com>, Paolo Bonzini <pbonzini@redhat.com>, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= <berrange@redhat.com>, qemu-block@nongnu.org, Eric Blake <eblake@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Kevin Wolf <kwolf@redhat.com>, Markus Armbruster <armbru@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>, Mathieu Poirier <mathieu.poirier@linaro.org>, Hanna Reitz <hreitz@redhat.com>, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, Erik Schilling <erik.schilling@linaro.org>, "Gonglei (Arei)" <arei.gonglei@huawei.com>, Eduardo Habkost <eduardo@habkost.net>, Fam Zheng <fam@euphon.net>, virtio-fs@redhat.com, Stefan Hajnoczi <stefanha@redhat.com> 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
virtio: add vhost-user-generic, reduce c&p and support standalone
|
expand
|
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; };
Lets document some more of the core VirtIODevice structure. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> --- include/hw/virtio/virtio.h | 8 ++++++++ 1 file changed, 8 insertions(+)