From nobody Sun Feb 8 21:27:01 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=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1591033903; cv=none; d=zohomail.com; s=zohoarc; b=RPMwS5WgJITlVoMQDot3H5+tCEUdYWGnBgZ5TJdB0WPgKemmMnnMhi8ikoarl9dHE9UsphAe64HXvv2uHGkQDCi2fWLrlYtI6K9jOdO2ho7GIORimYZ9BprYH1AifTi8niON1kvtCvztZLnbqmkHDPzxP2yuXacOu/E95N2m9eA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1591033903; 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=dQu0hXwoK158/nC+VHHu8v6OJBUx51WtlVVhKMj/UXY=; b=SSWIkTheFLA2Xr62ifgjKI/S5Lj3/9VTJi2+WwIQS5Uz3o1r4gnYGWBD+Ffxr7ZXs3RsV1iRUC+TAsuZ8PF9V41CQL/SExcWL7JcduqBmJUNWnAKaw31bf0uMQDBLUVJuEX3VLz/EgaO847eQ/sDpNhb8dkiFy3L5alwtA7L228= 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=fail 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 1591033903357319.3208261328907; Mon, 1 Jun 2020 10:51:43 -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-421-MKV7mC5NO9iCsa3lr-5nYg-1; Mon, 01 Jun 2020 13:51:40 -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 0026D873092; Mon, 1 Jun 2020 17:51:35 +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 D61D67E7FA; Mon, 1 Jun 2020 17:51:34 +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 A67EF1809554; Mon, 1 Jun 2020 17:51:34 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 051Hp3iv009416 for ; Mon, 1 Jun 2020 13:51:03 -0400 Received: by smtp.corp.redhat.com (Postfix) id BA35F2156A2D; Mon, 1 Jun 2020 17:51:03 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast06.extmail.prod.ext.rdu2.redhat.com [10.11.55.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B65292166B28 for ; Mon, 1 Jun 2020 17:51:03 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (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 9B5E51859175 for ; Mon, 1 Jun 2020 17:51:03 +0000 (UTC) Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-483-SQzqOCuIPvCl1OBl63W3gw-1; Mon, 01 Jun 2020 13:50:57 -0400 Received: by mail-qk1-f193.google.com with SMTP id c12so9856307qkk.13; Mon, 01 Jun 2020 10:50:56 -0700 (PDT) Received: from rekt.ibmuc.com ([2804:431:c7c7:9da7:da03:b92e:aafb:831c]) by smtp.gmail.com with ESMTPSA id h22sm9519021qtk.63.2020.06.01.10.50.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 10:50:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1591033902; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=dQu0hXwoK158/nC+VHHu8v6OJBUx51WtlVVhKMj/UXY=; b=cYdOeLc5HK6Sj2nZEoTOEOP3oGKP0Ji43kWmIYm8HaKezT8uTs+WwskTxIjU/yPK0uCwg/ r9vYY4QS04AVXm1PPoM7qeJvUOboVCZNEAMsoRwiJ7QdAmMwMFcSvjcT3047F9YiUo5xgY uZiuL4Daj/NBcr+92PvZ0kOMsZw2euY= X-MC-Unique: MKV7mC5NO9iCsa3lr-5nYg-1 X-MC-Unique: SQzqOCuIPvCl1OBl63W3gw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dQu0hXwoK158/nC+VHHu8v6OJBUx51WtlVVhKMj/UXY=; b=SORUTEy/fiXu9VeXAlBRbtCrq5bUjuEorvF3lgdl/nbxVlyo6ubuuT4bTRLfljNdGV PA/E5fSVmpPwsvySW8G8w3PrQE3VCb6Woseaj3LUx1r6CvdVtjKvihW9DcaSxBLsdEVi K4v2/yPWMhr8PWn9wPjkchVIZ2kfbwxnixKIZmxXnG8idKdKMpeywqVMkOpR0RUyWbIS XK+ZjjeiynEl9720G/B5y0K1E9sdu+ZjrD80q1mwIJMppDsiUJpjzBxB/iW6P3tOfbvf 82QYStNzwbu1xb+ha78Gz67fBRyZ9twTCZMjBTrLrJ707Vsl6vc4UXhiEYNKgLjKP2RH VxYw== X-Gm-Message-State: AOAM533/tz392BoH02Q2HxExtR0TfIE/EHRJ0DUViiIQtuhwDzc+rkG1 /Y/1rhQtSh6vt8wed3AOwL5MQigkq0c= X-Google-Smtp-Source: ABdhPJyTvssfZx4lXHCf2NL2XnZ17+fWhAxDcRx1xMDowbkoan2qCCM8gmfV6W392lgDQIiIzi7TIQ== X-Received: by 2002:a37:a981:: with SMTP id s123mr20951348qke.106.1591033856042; Mon, 01 Jun 2020 10:50:56 -0700 (PDT) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH 3/5] qemuxml2xmltest.c: add NUMA vcpus auto fill tests Date: Mon, 1 Jun 2020 14:50:39 -0300 Message-Id: <20200601175041.1607723-4-danielhb413@gmail.com> In-Reply-To: <20200601175041.1607723-1-danielhb413@gmail.com> References: <20200601175041.1607723-1-danielhb413@gmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza , pkrempa@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" Add a unit test to verify the NUMA vcpus autocomplete implemented in the previous patch. Signed-off-by: Daniel Henrique Barboza --- .../numavcpus-topology-mismatch.xml | 37 ++++++++++++++++++ ...avcpus-topology-mismatch.x86_64-latest.xml | 38 +++++++++++++++++++ tests/qemuxml2xmltest.c | 1 + 3 files changed, 76 insertions(+) create mode 100644 tests/qemuxml2argvdata/numavcpus-topology-mismatch.xml create mode 100644 tests/qemuxml2xmloutdata/numavcpus-topology-mismatch.x8= 6_64-latest.xml diff --git a/tests/qemuxml2argvdata/numavcpus-topology-mismatch.xml b/tests= /qemuxml2argvdata/numavcpus-topology-mismatch.xml new file mode 100644 index 0000000000..d3b2c1297e --- /dev/null +++ b/tests/qemuxml2argvdata/numavcpus-topology-mismatch.xml @@ -0,0 +1,37 @@ + + dummy + 4d92ec27-9ebf-400b-ae91-20c71c647c19 + 16777216 + 7864320 + 3906240 + 12 + + + + + hvm + + + + + + + + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + +
+ + + + + +
+ + + diff --git a/tests/qemuxml2xmloutdata/numavcpus-topology-mismatch.x86_64-la= test.xml b/tests/qemuxml2xmloutdata/numavcpus-topology-mismatch.x86_64-late= st.xml new file mode 100644 index 0000000000..2d2245b10c --- /dev/null +++ b/tests/qemuxml2xmloutdata/numavcpus-topology-mismatch.x86_64-latest.xml @@ -0,0 +1,38 @@ + + dummy + 4d92ec27-9ebf-400b-ae91-20c71c647c19 + 16777216 + 7864320 + 3906240 + 12 + + + + + hvm + + + + qemu64 + + + + + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + +
+ + + + + +
+ + + diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index dcc7b29ded..3e434a6cbe 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -553,6 +553,7 @@ mymain(void) DO_TEST("vcpu-placement-static", QEMU_CAPS_KVM, QEMU_CAPS_OBJECT_IOTHREAD); + DO_TEST_CAPS_LATEST("numavcpus-topology-mismatch"); =20 DO_TEST("smp", NONE); DO_TEST("iothreads", NONE); --=20 2.26.2