From patchwork Mon Mar 21 15:30:24 2022 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: 553347 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1248:0:0:0:0 with SMTP id z8csp1613024mag; Mon, 21 Mar 2022 08:42:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQHyoc/LWaOL3xS1jOQXTw7jl0OIRjADZ9uE9jFSpMQIM3cbW3Pg6DbC904RTJ1TBgf8tC X-Received: by 2002:ae9:e803:0:b0:67b:14c8:8481 with SMTP id a3-20020ae9e803000000b0067b14c88481mr13105217qkg.58.1647877328405; Mon, 21 Mar 2022 08:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647877328; cv=none; d=google.com; s=arc-20160816; b=uTCN5+nGDO9InD962ATwd41AcyNkNd3WGySIf8LEzQiuAoUjqtbfucUlLQUDl74LuK 6RSKlQaMEzHtwB0UPu5BDLubTUS8aNjenGqX4vpC/mzvUzMlcgDqFYlyLFahgOgG6avE f9SNlaKBl3y2t/atGaLPQEHhP14qlqgplhK0DkqUggfsBZO9REjswA5NyC19+ZqVn3Qt 3UggXud6STe9w0v2yV1GQKa+eQ9G/buiHSri+zaVN7ekJW7lC7xlszZY41+bI/sdy92M OyuTSTcb/oFRfwJmbapLzWKjahNV+huf+7w1o3V8QRrYOFiH+5LpqWTcy4b/gJxny+zJ gDzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=WXN89JBOg14b4ZNRrtS85bRX0djWKz21Aw2Nc6SLXB8=; b=AHFBBHFGVkcoL370fv97DH3Ei9J4tPclTI5AXD5oqGZZt4pYVwQ1qw8yluPUtAWOsL fz1r1Qj8JI/ybtBa7wtGywUWHQQi6NQMn7pn6WTNgkxLAK9aqLA9peXLPKZvCdmJbb9c lC8F8uavwytsYUTbgEyFw07PwmfFGJlZW+0ZtqLF9EosNI+CBHTfWBFaDz8nHhEvLsia xqayuyRQj3lupxvZdFleOkCVkb4NfoIjhNegTo3ESETxrQssqq1Q3GZ2zIQBqi6ac8bM 9MqI/erPAjbRVegPlIa4BJnh/MqVS3+9ruZaikgz2d2fofurwjH5C/WDDZ0zs1jna0gJ BASA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=AzBEKAGY; 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=fail (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 h9-20020a0cd809000000b00440e46a7b90si2011567qvj.46.2022.03.21.08.42.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Mar 2022 08:42:08 -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=fail header.i=@linaro.org header.s=google header.b=AzBEKAGY; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:48592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWKAZ-000661-TG for patch@linaro.org; Mon, 21 Mar 2022 11:42:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWJzY-0005B9-FP for qemu-devel@nongnu.org; Mon, 21 Mar 2022 11:30:44 -0400 Received: from [2a00:1450:4864:20::631] (port=40657 helo=mail-ej1-x631.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nWJzV-0004ex-NZ for qemu-devel@nongnu.org; Mon, 21 Mar 2022 11:30:44 -0400 Received: by mail-ej1-x631.google.com with SMTP id p15so30601609ejc.7 for ; Mon, 21 Mar 2022 08:30:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WXN89JBOg14b4ZNRrtS85bRX0djWKz21Aw2Nc6SLXB8=; b=AzBEKAGYjNsjIUieyPGSxtXWPWuyqxvwialors46lM0rSjKQ9ub52/VvsfRrmcveL3 ryINSvYHxMJfgaUDmExLJp4gdpL9sIUpRTyFxaLykhKddsn82afObvK8M7StpI79PuOI n5s/Ot2YqU9oO0lHjU80Rhv7fd3LZ++vjiWE3PnTJvoNKxI0lmG3b/KWQLO8YaqlsAD6 TpmmcTGlSq8FMyvAxYkvKOnbR8g1eud7MKg92ujwl1hfvqWHVA5ENuvUvx1IZBR9L7Ev p5mBtyJae2DWEllQ1SzW7XI/HYq3e6cyYzkHldoYhtpGKfy0mBIvt/vHUJFHTmwt7ubV fONQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WXN89JBOg14b4ZNRrtS85bRX0djWKz21Aw2Nc6SLXB8=; b=eKu6LvzHsyQx7I7f1y9VstUnhOgVbAEEnO8r1AX3wrXXBaDpBG55oAEKVdpHl7fKPb 3V4H3a2LOEkCkLMecumDXG4Tvguv38T9SKSLnWNs/LEh0rofCgew4qa3oTbWSV4DrO4X wlmvIs36HBXwxfr7JwTihQoda9VCYz7BGeGpAD4hT2hVj9LGIfq/X+TmzlOI/cgEWKC9 +4pkvnfjx28eNUIA8+68mWISYgpJpvOnUTWVaWzjLaA6v6Gxb7rEM9hXgeowGHNn8g7x /wd86Hyzye9uQcF5yydcXW3zvGGRFSsw/QPxYIbKv7upkLVo52HUSOBnAQ6WwDWPP4PS c6tA== X-Gm-Message-State: AOAM532jLXNhprjkyA2oSd+IGjV8LH9abGxO1rVx5frP2pblBBsbeEoj eOlekHiwGeE4VVAHjloLqj7zOw== X-Received: by 2002:a17:906:2a0c:b0:6df:ec76:af8c with SMTP id j12-20020a1709062a0c00b006dfec76af8cmr9017012eje.269.1647876639597; Mon, 21 Mar 2022 08:30:39 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id z5-20020a1709063a0500b006da8fa9526esm7040238eje.178.2022.03.21.08.30.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 08:30:38 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 835A61FFB7; Mon, 21 Mar 2022 15:30:37 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 00/13] various virtio docs, fixes and tweaks Date: Mon, 21 Mar 2022 15:30:24 +0000 Message-Id: <20220321153037.3622127-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::631 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::631; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x631.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: slp@redhat.com, mathieu.poirier@linaro.org, mst@redhat.com, viresh.kumar@linaro.org, stefanha@redhat.com, marcandre.lureau@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hi, This series is a sub-set of patches while I was trying to re-rev my virtio-rpmb patches. It attempts to address a few things: - improve documentation for virtio/vhost/vhost-user - document some of the API - a hacky fix for F_CONFIG handling - putting VhostUserState on a diet, make VhostUserHostNotifier dynamic In particular I've been trying to better understand how vhost-user interactions are meant to work and why there are two different methods for instantiating them. If my supposition is correct perhaps a number of devices that don't have in-kernel vhost equivalents could be converted? While working onthe VhostUserHostNotifier changes I found it quite hard to trigger the code. Is this rarely used code or just requires backends we don't see in the testing? Alex Bennée (10): hw/virtio: move virtio-pci.h into shared include space virtio-pci: add notification trace points hw/virtio: add vhost_user_[read|write] trace points vhost-user.rst: add clarifying language about protocol negotiation libvhost-user: expose vu_request_to_string docs/devel: start documenting writing VirtIO devices include/hw: start documenting the vhost API contrib/vhost-user-blk: fix 32 bit build and enable hw/virtio/vhost-user: don't suppress F_CONFIG when supported virtio/vhost-user: dynamically assign VhostUserHostNotifiers Paolo Bonzini (3): docs: vhost-user: clean up request/reply description docs: vhost-user: rewrite section on ring state machine docs: vhost-user: replace master/slave with front-end/back-end docs/devel/index-internals.rst | 1 + docs/devel/virtio-backends.rst | 214 +++++++++ docs/interop/vhost-user-gpu.rst | 10 +- docs/interop/vhost-user.rst | 555 ++++++++++++---------- meson.build | 2 +- include/hw/virtio/vhost-user.h | 43 +- include/hw/virtio/vhost.h | 132 ++++- {hw => include/hw}/virtio/virtio-pci.h | 0 subprojects/libvhost-user/libvhost-user.h | 9 + contrib/vhost-user-blk/vhost-user-blk.c | 6 +- hw/scsi/vhost-user-scsi.c | 1 + hw/virtio/vhost-scsi-pci.c | 2 +- hw/virtio/vhost-user-blk-pci.c | 2 +- hw/virtio/vhost-user-fs-pci.c | 2 +- hw/virtio/vhost-user-i2c-pci.c | 2 +- hw/virtio/vhost-user-input-pci.c | 2 +- hw/virtio/vhost-user-rng-pci.c | 2 +- hw/virtio/vhost-user-scsi-pci.c | 2 +- hw/virtio/vhost-user-vsock-pci.c | 2 +- hw/virtio/vhost-user.c | 133 ++++-- hw/virtio/vhost-vsock-pci.c | 2 +- hw/virtio/virtio-9p-pci.c | 2 +- hw/virtio/virtio-balloon-pci.c | 2 +- hw/virtio/virtio-blk-pci.c | 2 +- hw/virtio/virtio-input-host-pci.c | 2 +- hw/virtio/virtio-input-pci.c | 2 +- hw/virtio/virtio-iommu-pci.c | 2 +- hw/virtio/virtio-net-pci.c | 2 +- hw/virtio/virtio-pci.c | 5 +- hw/virtio/virtio-rng-pci.c | 2 +- hw/virtio/virtio-scsi-pci.c | 2 +- hw/virtio/virtio-serial-pci.c | 2 +- subprojects/libvhost-user/libvhost-user.c | 2 +- contrib/vhost-user-blk/meson.build | 3 +- hw/virtio/trace-events | 10 +- 35 files changed, 831 insertions(+), 333 deletions(-) create mode 100644 docs/devel/virtio-backends.rst rename {hw => include/hw}/virtio/virtio-pci.h (100%)