From nobody Thu Dec 18 08:06:58 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1665423128; cv=none; d=zohomail.com; s=zohoarc; b=XWg2DB+RfyryNJ9bJrQKqIAGodHXVFrVu9O/sjUP2iYKKXcaZNdbJz+59Kpgk4OkDDiz25V38G08aOlKqu/0PC0YtDbZkWwARPxXDeT0g6cQ1uReFdq8Isx5F0uimlzcQaCcw45bDdZZ1oHEBZrG9KoXLnpRWjF5cVCMMrq36lg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665423128; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=C17R4uZqGLEi0seyRZv7bdzpjpcef+51Q4h/UGlzozI=; b=iU01WetcNf1cPgOaFPrLZBIpsB3klH26s03hSQiWnHq+L0oOpE9PDDE6MDOlulPxJLPL4IEwtoXB7O23Ifp8z3dEdLoCLpSSShWmyDws9+C5qPMvCZ/dvWS8109Q+VRtFVIRKwjYqixG29GyXjRGFNPddzSA9hBxrD9UKqwnQEw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1665423128576918.253694976174; Mon, 10 Oct 2022 10:32:08 -0700 (PDT) Received: from localhost ([::1]:58014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohwdK-0002WL-NI for importer@patchew.org; Mon, 10 Oct 2022 13:32:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohwaL-0007v3-Q5 for qemu-devel@nongnu.org; Mon, 10 Oct 2022 13:29:01 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:30351) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohwaH-0006QY-Az for qemu-devel@nongnu.org; Mon, 10 Oct 2022 13:29:01 -0400 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-60-tCd9lUVgO3uPgHdwj7OgTw-1; Mon, 10 Oct 2022 13:28:55 -0400 Received: by mail-wr1-f71.google.com with SMTP id k30-20020adfb35e000000b0022e04708c18so2982630wrd.22 for ; Mon, 10 Oct 2022 10:28:55 -0700 (PDT) Received: from redhat.com ([2.55.183.131]) by smtp.gmail.com with ESMTPSA id i9-20020a5d5229000000b0022cd59331b2sm9540464wra.95.2022.10.10.10.28.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 10:28:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665422936; 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=C17R4uZqGLEi0seyRZv7bdzpjpcef+51Q4h/UGlzozI=; b=Y+OB9/KFgKj2khtazSClewo8GHZ2F5J05YfVLYb6oDjOFEthRIpCPsVC3D6tPkzerUrT2c t5bZnoouj10VIOhjIL+2n9612rAqR+CWyaCOuotY1B8aFD2J9s1TaPU4itMhEFDMkpaf6H RayS00/8AHpAtsrGV0pXB5uc0m4/fhs= X-MC-Unique: tCd9lUVgO3uPgHdwj7OgTw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=C17R4uZqGLEi0seyRZv7bdzpjpcef+51Q4h/UGlzozI=; b=MM5Y8CWOrBFU/yEr+H24n8dByhms4fLr3vcL9WXwoo86CuOIWpOO/D2hITllINJpB6 dG3D++TZOXCO86P8W3mIDe91SF8PrS3j47hHZPOS//weQzVZrLMvD/Tf/Dcdsfpov275 2Rr+oF1a1nrAVkmudHqYcAkNb3obYf0VmV3YamF4nMoPbPgZ/8xv76vGzQYmmSdXb6Rr BWnmBt9wcKEs1URszlp2EFpj+qEJ5TRi47igbTw5wMf5yMWlaUhqn5D8p6u8UVJOaUDN lEB89JxCibs/nA5OYBBcQospCH1hwP2IEMUxV80HVfwcmSiRq4T+tue8plVco6TKc7Cx t+Qg== X-Gm-Message-State: ACrzQf32exYkKews8dHCtIrK9brHijM0yzQ6wTysoMh4y04dC4zD2tJt yzJ1wDge7ht2w4B2I9e5NveQvZD99YcukS1aMB0RESVo7UWIjFxEHHhQBLFwgP8ys4n7Ocvr393 4V3fFUu0aV2Hz2LCG6mMHQhw/3Ruikk7r50xV1O93pTwPNBXrVGx98shNucff X-Received: by 2002:a05:600c:34c2:b0:3b4:7a98:5f5a with SMTP id d2-20020a05600c34c200b003b47a985f5amr13509088wmq.156.1665422934217; Mon, 10 Oct 2022 10:28:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ScZhY6vvzjjysGPhGw5ZaTubJxKoW+/2JYoD3/aQZ39eYMliJs0k72iXdzQJbgMIaxJqI2A== X-Received: by 2002:a05:600c:34c2:b0:3b4:7a98:5f5a with SMTP id d2-20020a05600c34c200b003b47a985f5amr13509063wmq.156.1665422933862; Mon, 10 Oct 2022 10:28:53 -0700 (PDT) Date: Mon, 10 Oct 2022 13:28:50 -0400 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Cc: Peter Maydell , Alex =?utf-8?Q?Benn=C3=A9e?= , Jason Wang , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Subject: [PULL 03/55] include/hw: document vhost_dev feature life-cycle Message-ID: <20221010172813.204597-4-mst@redhat.com> References: <20221010172813.204597-1-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20221010172813.204597-1-mst@redhat.com> X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1665423130682100001 From: Alex Benn=C3=A9e Try and explicitly document the various state of feature bits as related to the vhost_dev structure. Importantly the backend_features can advertise things like VHOST_USER_F_PROTOCOL_FEATURES which is never exposed to the driver and is only present in the vhost-user feature negotiation. Signed-off-by: Alex Benn=C3=A9e Acked-by: Jason Wang Message-Id: <20220802095010.3330793-7-alex.bennee@linaro.org> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/virtio/vhost.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/hw/virtio/vhost.h b/include/hw/virtio/vhost.h index a346f23d13..586c5457e2 100644 --- a/include/hw/virtio/vhost.h +++ b/include/hw/virtio/vhost.h @@ -86,8 +86,11 @@ struct vhost_dev { /* if non-zero, minimum required value for max_queues */ int num_queues; uint64_t features; + /** @acked_features: final set of negotiated features */ uint64_t acked_features; + /** @backend_features: backend specific feature bits */ uint64_t backend_features; + /** @protocol_features: final negotiated protocol features */ uint64_t protocol_features; uint64_t max_queues; uint64_t backend_cap; --=20 MST