From nobody Sat Jan 4 23:02:50 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1733751023842774.3073181135702; Mon, 9 Dec 2024 05:30:23 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 75C9E1427; Mon, 9 Dec 2024 08:30:22 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id EE2E413A2; Mon, 9 Dec 2024 08:20:19 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id B8567A54; Mon, 9 Dec 2024 07:42:54 -0500 (EST) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 491A9A54 for ; Mon, 9 Dec 2024 07:42:52 -0500 (EST) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-2161eb95317so23055465ad.1 for ; Mon, 09 Dec 2024 04:42:52 -0800 (PST) Received: from localhost.localdomain ([120.60.110.156]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-2164d103993sm18113195ad.193.2024.12.09.04.42.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 09 Dec 2024 04:42:49 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733748170; x=1734352970; darn=lists.libvirt.org; 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=9FjdDtuOoK1BVEBZOth9EjRAXCm64zN2b8AiJH5gV0k=; b=gQz1wTNaIXumJ99Wyc/6sBvg25Avq44z743jiaUX60URkoOKn5YeCtZ9yUEOB+7AVO ZO3DrkzZB+YedIAt4QbUND7DB4ZoZoVo6LHTYVto5xrGnf/1OSSNT+93l7ckfi+dXA9T wJzbc8mpAAw0BK1ECCpCgZvrpR6YyWgu+waUQPGEvhq04Ub57CMNwEUfHR7ulPq22PQy wTjKLLz1tMyqRY5g6ihXsdq/W9nH0o4TR42LBwnBd5uxs6OV4vDZQROmz49M1+v3Anwz rI+P3q+hTeoIIvmaeGQx9EDHiT8GycmSqLireRIakRvFEBKF2dH41SC+9Ciz6W34Xysj Nb/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733748170; x=1734352970; 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=9FjdDtuOoK1BVEBZOth9EjRAXCm64zN2b8AiJH5gV0k=; b=MQ+AVsMD6/HhOi9lOwzoXcqDdQafK00V0E2/Om4g36TbLE/5n2ymb/GVC/ORj9gEkt d4FPr/XatQMvdek6bnDvJRtGx6wsAgXRZ4WrDr6r+3C97CIVITuP+wEI/95Q1t+l3Dbr 96sP9Ezb5kWqJaV2vHrsTOZXVWBXHABDmW/MF1FevCdvUMkkbiN0s9hGuiB9Co6+znEA j5rls1q73MH9b9TF0yZZTMbZVAk8fsyq8a3xUh+U1Zvn9UW0QmOv8YAb4qarDa8wmDkV QuB/KtvGytv5bOretsS9B4rQybliWaArVLZMcQQkRu29Df5/8YqndhUj46SYpZVq+Qqg Ulhw== X-Gm-Message-State: AOJu0YwaJ+OCKNt7ql2FjZi/s0otDgndIV4MkSYvicL3ZIS52gKZsRF5 tytjeESAC2C64IBuukK8h2ESmqKKmfrvnv1kKJm8bN9odNIUfDumo7evzQCu X-Gm-Gg: ASbGnctfjzVZjPnHlBRPXeeik6RYNIwIF0c3swhZ1mpt5IjLdVy3nDy85xq068EvLwJ RxXgy4ckMP/GwaSGVTefXESR5FFgY1vlFsrzQDX3Qj3WTG5zSg066iH8L51mxEo64D89MVxTc5V 4JJ8n/hOlOb399NSdAKaEmaazg/ls45jifsoC9jH3ZVDUuAndD82QsFslWebgOKz33KEIW+SaK4 c6/GSmCTUZ8AyRbJ2sjkjo1gL0HygCEXfGszQ3yCdF5RAfbXM5Z9UP+a+H69s2n0RBFed93Aedm 86vuGw== X-Google-Smtp-Source: AGHT+IH23xJchwlYvsv7h8RGyy9WezOgR/2FMKyTEE5N6zmGjTqvRW6DSRlYVA3fZnsJhq95aGwbIg== X-Received: by 2002:a17:902:ea07:b0:216:6653:aa82 with SMTP id d9443c01a7336-2166a066c2cmr5379825ad.52.1733748169997; Mon, 09 Dec 2024 04:42:49 -0800 (PST) From: Harikumar R To: devel@lists.libvirt.org Subject: [PATCH v6 13/18] qemuxmlconftest: Add 'throttlefilter' tests Date: Mon, 9 Dec 2024 18:11:13 +0530 Message-Id: <20241209124118.39471-14-harirajkumar230@gmail.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20241209124118.39471-1-harirajkumar230@gmail.com> References: <20241209124118.39471-1-harirajkumar230@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-MailFrom: harirajkumar230@gmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0 Message-ID-Hash: WNLWYXPFMATEGUFJM5BQZX5ZFFHMK3N2 X-Message-ID-Hash: WNLWYXPFMATEGUFJM5BQZX5ZFFHMK3N2 X-Mailman-Approved-At: Mon, 09 Dec 2024 13:19:48 -0500 CC: earulana@in.ibm.com, sanjeev.ranjan@ibm.com, harikumar.rajkumar@ibm.com, Chun Feng Wu X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1733751025116116600 Content-Type: text/plain; charset="utf-8" From: Chun Feng Wu Test domain xml and status xml * Add tests for "throttlegroup" domain xml processing, including groups referenced and not referenced by filters * Add tests for "throttlefilter" domain xml processing, including throttle group referenced by different disks * Add negative test case to report error when iotune is configured together with throttle filters * Add tests for throttlefilter nodename parse and format for statusxml (disk/privateData/nodenames/nodename with type=3D'throttle-filter') * Add iotune limited disk tests to make sure iotune refactory works Signed-off-by: Chun Feng Wu --- .../throttlefilter-in.xml | 392 +++++++++++++++++ .../throttlefilter-out.xml | 393 ++++++++++++++++++ tests/qemuxmlactivetest.c | 1 + .../throttlefilter-invalid.x86_64-latest.err | 1 + .../throttlefilter-invalid.xml | 89 ++++ .../throttlefilter.x86_64-latest.args | 55 +++ .../throttlefilter.x86_64-latest.xml | 105 +++++ tests/qemuxmlconfdata/throttlefilter.xml | 95 +++++ tests/qemuxmlconftest.c | 2 + 9 files changed, 1133 insertions(+) create mode 100644 tests/qemustatusxml2xmldata/throttlefilter-in.xml create mode 100644 tests/qemustatusxml2xmldata/throttlefilter-out.xml create mode 100644 tests/qemuxmlconfdata/throttlefilter-invalid.x86_64-lat= est.err create mode 100644 tests/qemuxmlconfdata/throttlefilter-invalid.xml create mode 100644 tests/qemuxmlconfdata/throttlefilter.x86_64-latest.args create mode 100644 tests/qemuxmlconfdata/throttlefilter.x86_64-latest.xml create mode 100644 tests/qemuxmlconfdata/throttlefilter.xml diff --git a/tests/qemustatusxml2xmldata/throttlefilter-in.xml b/tests/qemu= statusxml2xmldata/throttlefilter-in.xml new file mode 100644 index 0000000000..2a98d6f5e2 --- /dev/null +++ b/tests/qemustatusxml2xmldata/throttlefilter-in.xml @@ -0,0 +1,392 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -2 + + copy + 0439a4a8-db56-4933-9183-d8681d7b0746 + 1024000 + 1024000 + 1 + + + 200 + 200 + limit0 + 1 + + + 250 + 250 + limit1 + 1 + + + 300 + 300 + limit2 + 1 + + + 400 + 400 + limit012 + 1 + + + + /machine + + + hvm + + + + + + + + + + + + + + destroy + restart + restart + + + + + + /usr/bin/qemu-system-x86_64 + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + 10000000 + 400000 + 100000 + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +