From nobody Wed Feb 11 06:51:11 2026 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=yandex-team.ru ARC-Seal: i=1; a=rsa-sha256; t=1661527602; cv=none; d=zohomail.com; s=zohoarc; b=RCLyXHV8RQ/cwuTBevd22CWIEVaGDjKj+ai/bP5wnCUpxoz6kjBu0sXcmoOEA4FdmmtEpYxA1d/4IqBNZsCadljXHeruO1+Nm7onCiqEl+SS7Zrb+zzfqTEocNtzWd/NDXypVcP17t3LpsXhBJh0nYWu65LgMktT6Kvc7D2BWsg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1661527602; h=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=AJeK5QA+uKLglCU8RKDByafd9uOq9TDrqs96cImo3aw=; b=VX948AHKEw/4LHFrhwkXreje3lxKhOb+P+VT5joDNd/hHE5PmoDNxJQyRHorpsTV7ccnZYsmllos3cYsXq9PoSge9X0jYvRqVywjs4Lz+r6uE+gyvOtQNZ1j75V9LZdrwfqKkVqaSSDp4rQVIHh5Dht0UMRRf+frXh+2Hg0Fdlk= 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 1661527602237854.1328314722405; Fri, 26 Aug 2022 08:26:42 -0700 (PDT) Received: from localhost ([::1]:60326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRbEG-0004pd-OJ for importer@patchew.org; Fri, 26 Aug 2022 11:26:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRaOe-0004FL-Lb; Fri, 26 Aug 2022 10:33:23 -0400 Received: from forwardcorp1j.mail.yandex.net ([5.45.199.163]:39754) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRaOb-0007As-DL; Fri, 26 Aug 2022 10:33:18 -0400 Received: from iva4-f06c35e68a0a.qloud-c.yandex.net (iva4-f06c35e68a0a.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:152e:0:640:f06c:35e6]) by forwardcorp1j.mail.yandex.net (Yandex) with ESMTP id 8A29A2E19C4; Fri, 26 Aug 2022 17:33:09 +0300 (MSK) Received: from d-tatianin-nix.yandex-team.ru (unknown [2a02:6b8:b081:b581::1:d]) by iva4-f06c35e68a0a.qloud-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id 7Ht2PirWaX-X8OqY4aI; Fri, 26 Aug 2022 17:33:08 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Precedence: bulk X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1661524388; bh=AJeK5QA+uKLglCU8RKDByafd9uOq9TDrqs96cImo3aw=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=o8brJpHKcFDxyZ0VnHoENbRIR4lEHUe7bz0xSyBViy739JySfUCh7n4cITkSA/kZs 7YAWhX4GtPHhjDgKJCDS5O0MO8PrVTwWQ5JDMt/N/iN1nODv+hGliiSMDMH0JUZES5 aipnEVEkfrqTZAGCq/5i8zreEIQh2/I3jR7WVbJw= Authentication-Results: iva4-f06c35e68a0a.qloud-c.yandex.net; dkim=pass header.i=@yandex-team.ru From: Daniil Tatianin To: qemu-devel@nongnu.org Cc: yc-core@yandex-team.ru, mst@redhat.com, stefanha@redhat.com, raphael.norwitz@nutanix.com, kwolf@redhat.com, qemu-block@nongnu.org, jasowang@redhat.com, d-tatianin@yandex-team.ru Subject: [PATCH v2 4/8] virtio: remove the virtio_feature_get_config_size helper Date: Fri, 26 Aug 2022 17:32:44 +0300 Message-Id: <20220826143248.580939-5-d-tatianin@yandex-team.ru> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220826143248.580939-1-d-tatianin@yandex-team.ru> References: <20220826143248.580939-1-d-tatianin@yandex-team.ru> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=5.45.199.163; envelope-from=d-tatianin@yandex-team.ru; helo=forwardcorp1j.mail.yandex.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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 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 @yandex-team.ru) X-ZM-MESSAGEID: 1661527603605100001 Content-Type: text/plain; charset="utf-8" This has no more users and is superseded by virtio_get_config_size. Signed-off-by: Daniil Tatianin Reviewed-by: Raphael Norwitz --- hw/virtio/virtio.c | 15 --------------- include/hw/virtio/virtio.h | 3 --- 2 files changed, 18 deletions(-) diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index 8518382025..c0bf8dd6fd 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -2999,21 +2999,6 @@ int virtio_set_features(VirtIODevice *vdev, uint64_t= val) return ret; } =20 -size_t virtio_feature_get_config_size(const VirtIOFeature *feature_sizes, - uint64_t host_features) -{ - size_t config_size =3D 0; - int i; - - for (i =3D 0; feature_sizes[i].flags !=3D 0; i++) { - if (host_features & feature_sizes[i].flags) { - config_size =3D MAX(feature_sizes[i].end, config_size); - } - } - - return config_size; -} - size_t virtio_get_config_size(const VirtIOConfigSizeParams *params, uint64_t host_features) { diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index 1991c58d9b..f3ff6710d5 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -53,9 +53,6 @@ typedef struct VirtIOConfigSizeParams { size_t virtio_get_config_size(const VirtIOConfigSizeParams *params, uint64_t host_features); =20 -size_t virtio_feature_get_config_size(const VirtIOFeature *features, - uint64_t host_features); - typedef struct VirtQueue VirtQueue; =20 #define VIRTQUEUE_MAX_SIZE 1024 --=20 2.25.1