From nobody Sun Feb 8 05:08:13 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1593006572; cv=none; d=zohomail.com; s=zohoarc; b=loxk0+fqFqn3ZPFW2IsKL29+QpoWmWqf1WxDgN7CaojwYC8QOGXeN/OfrQukYOUx9Z3VawoK3zvjuFRRzMzuT6013RFyj5eqwQGK9y92CMSk9IG4wEfIl/oQTTKJ9BFcl+uNCL5UrNJGD2bVbZsjN5MSp1CbjcmuXxjKPQeNoJo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1593006572; h=Content-Type:Content-Transfer-Encoding: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=39+NeOCgVhKs7GnVwnQN+/+uakF4J9xg/gjz8g3Ias4=; b=AU1ZEYYVDa+eC4FZXi44lhmc1AkMiBFjskk5Ask6lpdbwNMKjQjbGrKaePv1IiwTPB4koC7t7VSsU8Q7D2gOEy/Hz5YOaqBI3CEhJjC2o1FI80HL3iAPvq0zJa+7u1sfCHg65xSSlswUrwjj5DPVkLikUugGaKX7bXJzbhAr0yY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1593006572550821.6956750391398; Wed, 24 Jun 2020 06:49:32 -0700 (PDT) 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-453-K67KBA-GMwSADw5YwOYe7g-1; Wed, 24 Jun 2020 09:49:29 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7667218FE861; Wed, 24 Jun 2020 13:49:23 +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 7428971660; Wed, 24 Jun 2020 13:49:22 +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 A0BAC1809547; Wed, 24 Jun 2020 13:49:19 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 05ODnHiS015635 for ; Wed, 24 Jun 2020 09:49:17 -0400 Received: by smtp.corp.redhat.com (Postfix) id 9B7EA5DA27; Wed, 24 Jun 2020 13:49:17 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.195.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1D5C25D9DC for ; Wed, 24 Jun 2020 13:49:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593006571; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=39+NeOCgVhKs7GnVwnQN+/+uakF4J9xg/gjz8g3Ias4=; b=GYQQWFb59eV25zpXcgFWvr3mVggWr1xBu9/cW1BNV355JAWsKWDmN+J/SUFedPVkamc278 Dk3QntFP/P6QRzfhtmp4HAyLnAIe+4egmlwBNYAhfW4lp3zNBrsN/WjxJc3Sdte0jD+Y2r hx6iahEjA7DeUvmj0/LbSUwj8aFwR1Q= X-MC-Unique: K67KBA-GMwSADw5YwOYe7g-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 01/13] qemuxml2xmltest: Add "numatune-distance" test case Date: Wed, 24 Jun 2020 15:48:59 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" This test case tests that expanding of NUMA distances work. On input we accept if only distance from A to B is specified. On the output we format the B to A distance too. Signed-off-by: Michal Privoznik Reviewed-by: Daniel Henrique Barboza --- .../qemuxml2xmloutdata/numatune-distances.xml | 96 +++++++++++++++++++ tests/qemuxml2xmltest.c | 1 + 2 files changed, 97 insertions(+) create mode 100644 tests/qemuxml2xmloutdata/numatune-distances.xml diff --git a/tests/qemuxml2xmloutdata/numatune-distances.xml b/tests/qemuxm= l2xmloutdata/numatune-distances.xml new file mode 100644 index 0000000000..48f89cb015 --- /dev/null +++ b/tests/qemuxml2xmloutdata/numatune-distances.xml @@ -0,0 +1,96 @@ + + QEMUGuest + c7a5fdb2-cdaf-9455-926a-d65c16db1809 + 8388608 + 8388608 + 12 + + hvm + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + destroy + restart + restart + + /usr/bin/qemu-system-x86_64 + +
+ + + + + +
+ + + diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index 5a124853b4..d203c97e36 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -1104,6 +1104,7 @@ mymain(void) DO_TEST("numatune-auto-prefer", NONE); DO_TEST("numatune-memnode", QEMU_CAPS_NUMA, QEMU_CAPS_OBJECT_MEMORY_FI= LE); DO_TEST("numatune-memnode-no-memory", QEMU_CAPS_OBJECT_MEMORY_FILE); + DO_TEST("numatune-distances", QEMU_CAPS_NUMA, QEMU_CAPS_NUMA_DIST); =20 DO_TEST("bios-nvram", NONE); DO_TEST("bios-nvram-os-interleave", NONE); --=20 2.26.2