From nobody Sat May 4 20:26:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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=1631775622; cv=none; d=zohomail.com; s=zohoarc; b=iyC2bcwQ5i4Oe4hTEm41Qr7NUNA+LIfycvlLj9Caij2eG9vnS2s8BVQkPyvBU3bONWpY5KkbDBdWs8Nzeh9qTrR1JyCZXnrPO0Gyy3XC1TVbKgQgdPs4zuxOgK3uDB78xjCdzji9GHySxcTOKsKz+t90tYrLWNcpfSBL4zm8hp0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1631775622; 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=mZjCr4QdxZERlwzRZ0Fne9vLKkwwQoHwFXCoh1fmYwg=; b=NCz9BX+rowvyoOI4fMpaV8g8FJzE555HZFqnMAykzn00AKZqK9QlZe6G62lhJv52sEFe9LVx2dBfCQk8+gh+ePlOgCywaLJxLTSt+e6oqROGz7/XMdjiwIexUoRDvREIdRgXuE0wwg+cMYeRp4bziD7XROpRL+v28oO3sxBczVw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1631775622111624.7508986929442; Thu, 16 Sep 2021 00:00:22 -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-NFh3hRyNOeWLoBIy-VNbhA-1; Thu, 16 Sep 2021 03:00:19 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 686A3362F8; Thu, 16 Sep 2021 07:00:14 +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 D819E60C9F; Thu, 16 Sep 2021 07:00:13 +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 C7612180142F; Thu, 16 Sep 2021 07:00:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 18G6wuHH015106 for ; Thu, 16 Sep 2021 02:58:56 -0400 Received: by smtp.corp.redhat.com (Postfix) id 550FC19739; Thu, 16 Sep 2021 06:58:56 +0000 (UTC) Received: from maggie.redhat.com (unknown [10.43.2.93]) by smtp.corp.redhat.com (Postfix) with ESMTP id BDB2A19736 for ; Thu, 16 Sep 2021 06:58:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631775621; 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=mZjCr4QdxZERlwzRZ0Fne9vLKkwwQoHwFXCoh1fmYwg=; b=hfyOwTcxR7nD2/8AKwjFBpYcValfKeziJoCvHdUdiLrbNkTD84G91H21QXlF0glo1QHxt+ IF0UKeInIDDrrbYRDfLrL/+BvAA4ie5UwIZzy/tHIPZle/7ntDZZAoIW7lo9nHkSTa43W7 iFXIP/aoG0uTd5InJaaK6Lk6EK9QD/A= X-MC-Unique: NFh3hRyNOeWLoBIy-VNbhA-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 1/2] qemuxml2argvtest: Introduce another numa-topology test Date: Thu, 16 Sep 2021 08:58:50 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1631775623201100001 Content-Type: text/plain; charset="utf-8" This test shows a bug we have: even though the XML says: there is no -mem-prealloc nor .prealloc=3Dyes anywhere on the cmd line. This will be fixed in the next commit. Signed-off-by: Michal Privoznik Reviewed-by: J=C3=A1n Tomko --- ...d-memory-numa-topology4.x86_64-latest.args | 33 +++++++++++++++++ .../fd-memory-numa-topology4.xml | 37 +++++++++++++++++++ tests/qemuxml2argvtest.c | 1 + ...fd-memory-numa-topology4.x86_64-latest.xml | 1 + tests/qemuxml2xmltest.c | 1 + 5 files changed, 73 insertions(+) create mode 100644 tests/qemuxml2argvdata/fd-memory-numa-topology4.x86_64-= latest.args create mode 100644 tests/qemuxml2argvdata/fd-memory-numa-topology4.xml create mode 120000 tests/qemuxml2xmloutdata/fd-memory-numa-topology4.x86_6= 4-latest.xml diff --git a/tests/qemuxml2argvdata/fd-memory-numa-topology4.x86_64-latest.= args b/tests/qemuxml2argvdata/fd-memory-numa-topology4.x86_64-latest.args new file mode 100644 index 0000000000..203754373d --- /dev/null +++ b/tests/qemuxml2argvdata/fd-memory-numa-topology4.x86_64-latest.args @@ -0,0 +1,33 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/tmp/lib/domain--1-pc \ +USER=3Dtest \ +LOGNAME=3Dtest \ +XDG_DATA_HOME=3D/tmp/lib/domain--1-pc/.local/share \ +XDG_CACHE_HOME=3D/tmp/lib/domain--1-pc/.cache \ +XDG_CONFIG_HOME=3D/tmp/lib/domain--1-pc/.config \ +/usr/bin/qemu-system-x86_64 \ +-name guest=3Dpc,debug-threads=3Don \ +-S \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/tm= p/lib/domain--1-pc/master-key.aes"}' \ +-machine pc-i440fx-5.0,accel=3Dkvm,usb=3Doff,dump-guest-core=3Doff \ +-cpu qemu64 \ +-m 1024 \ +-overcommit mem-lock=3Doff \ +-smp 2,sockets=3D2,cores=3D1,threads=3D1 \ +-numa node,nodeid=3D0,cpus=3D0-1,mem=3D1024 \ +-uuid bb508b28-d57b-44bd-9e9c-a134cef24b60 \ +-display none \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=3Dcharmonitor,fd=3D1729,server=3Don,wait=3Doff \ +-mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol \ +-rtc base=3Dutc \ +-no-shutdown \ +-no-acpi \ +-boot strict=3Don \ +-device piix3-usb-uhci,id=3Dusb,bus=3Dpci.0,addr=3D0x1.0x2 \ +-audiodev id=3Daudio1,driver=3Dnone \ +-device virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x2 \ +-sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,resource= control=3Ddeny \ +-msg timestamp=3Don diff --git a/tests/qemuxml2argvdata/fd-memory-numa-topology4.xml b/tests/qe= muxml2argvdata/fd-memory-numa-topology4.xml new file mode 100644 index 0000000000..2f5bd3e839 --- /dev/null +++ b/tests/qemuxml2argvdata/fd-memory-numa-topology4.xml @@ -0,0 +1,37 @@ + + pc + bb508b28-d57b-44bd-9e9c-a134cef24b60 + 1179648 + 1179648 + + + + 2 + + hvm + + + + qemu64 + + + + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + +
+ + + + +