From nobody Mon Feb 9 08:11:56 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=quarantine dis=quarantine) header.from=virtuozzo.com ARC-Seal: i=1; a=rsa-sha256; t=1610359969; cv=none; d=zohomail.com; s=zohoarc; b=Vnz1tZ09QWcaiJ6rAT0V1o3gjZFbgKfFg5S9D5ikCmyCbbpb3Il+aOXH5dUsYdXq6XGCBk1gd93eC/jsrfL4v8uKxB9hlUasoctkkVg2NJ9oePpE/OmoAfr6mAXJjW54JSxDoIpOfRnNNZ+ibTcxXAe86nsL042oRHtLIcWkoww= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610359969; h=Content-Type:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=OSzSP9m3+8XHQJpK5xQdK9iuq43X55Dvdy0+IcPAim8=; b=cBRVxa0XZ+vWIb+qT85TbqOnqrvLdDm10ezOBrvWn0mUIk7rVFGKJJoet1qVOxGn4+lQvStrM1RamdrjQTdufAeAdHWu8BbEGUuvWc92WuqQtRjndeN/6wIfpWdgOSZXGtQSb9nXmOtE6IQH0wXJJcz/qD7jNYW+IG31sGGzeo0= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=quarantine dis=quarantine) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1610359968805101.03162601667134; Mon, 11 Jan 2021 02:12:48 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-550-W5QppzOvNk6vZHmsdvX_ZA-1; Mon, 11 Jan 2021 05:12:44 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0B28C190B2A2; Mon, 11 Jan 2021 10:12:39 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DA1094D740; Mon, 11 Jan 2021 10:12:38 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A4312180954D; Mon, 11 Jan 2021 10:12:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 10BACc5Q017029 for ; Mon, 11 Jan 2021 05:12:38 -0500 Received: by smtp.corp.redhat.com (Postfix) id DEA53100405B; Mon, 11 Jan 2021 10:12:37 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DAE721004149 for ; Mon, 11 Jan 2021 10:12:34 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7CE6C811E78 for ; Mon, 11 Jan 2021 10:12:34 +0000 (UTC) Received: from relay3.sw.ru (relay.sw.ru [185.231.240.75]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-587-tGhXxbUCOh2Z-BvkzuWRDA-1; Mon, 11 Jan 2021 05:12:32 -0500 Received: from [10.28.15.168] (helo=vz7.sw.ru.) by relay3.sw.ru with esmtp (Exim 4.94) (envelope-from ) id 1kyuAV-00GBOE-SZ for libvir-list@redhat.com; Mon, 11 Jan 2021 13:11:24 +0300 X-MC-Unique: W5QppzOvNk6vZHmsdvX_ZA-1 X-MC-Unique: tGhXxbUCOh2Z-BvkzuWRDA-1 From: Nikolay Shirokovskiy To: libvir-list@redhat.com Subject: [PATCH 21/23] test driver: remove TEST_BLOCK_IOTUNE_MAX checks Date: Mon, 11 Jan 2021 12:50:14 +0300 Message-Id: <1610358616-567804-22-git-send-email-nshirokovskiy@virtuozzo.com> In-Reply-To: <1610358616-567804-1-git-send-email-nshirokovskiy@virtuozzo.com> References: <1610358616-567804-1-git-send-email-nshirokovskiy@virtuozzo.com> X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 2 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The check is copied from qemu driver I guess and does not make much sense f= or test driver. This patch is a preparation step to get rid of macros in this place. And I guess it make sence just to drop this check instead of moving= to some function. Signed-off-by: Nikolay Shirokovskiy Reviewed-by: Peter Krempa --- src/test/test_driver.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 299be2a..58d3d79 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -3599,8 +3599,6 @@ testDomainGetInterfaceParameters(virDomainPtr dom, } =20 =20 -#define TEST_BLOCK_IOTUNE_MAX 1000000000000000LL - static int testDomainSetBlockIoTune(virDomainPtr dom, const char *path, @@ -3699,13 +3697,6 @@ testDomainSetBlockIoTune(virDomainPtr dom, for (i =3D 0; i < nparams; i++) { virTypedParameterPtr param =3D ¶ms[i]; =20 - if (param->value.ul > TEST_BLOCK_IOTUNE_MAX) { - virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, - _("block I/O throttle limit value must" - " be no more than %llu"), TEST_BLOCK_IOTUNE_M= AX); - goto cleanup; - } - SET_IOTUNE_FIELD(total_bytes_sec, VIR_DOMAIN_BLOCK_IOTUNE_TOTAL_BYTES_SEC, VIR_DOMAIN_TUNABLE_BLKDEV_TOTAL_BYTES_SEC); --=20 1.8.3.1