From nobody Fri Dec 12 12:53:27 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=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1764768693; cv=none; d=zohomail.com; s=zohoarc; b=byeS+gvgpB+boXyXZ/EuPkHP8vfR/KF5VkYbT3fqifKUjcK9l2kVFX+6Dh8qmcZ8feVNkGUwzyXWio30G2JD8ID1mdLl0UOOJEkcb6dowHn5RY/HR9D0lJvkXKmy0qUybZ+DEmGwxR3HZKjprtoBk08NpvFiXjZGt5L50SCXtxM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764768693; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id:Cc; bh=7raB/ivhq837CXE4T11p+mLBEW2BXPBzNe8A1gH+B7Q=; b=TxsUbjtS7d+oS9XuNsTz1yWqx6qHx3Mg7AJPdyw3P7aEnBKO7KF0cpHKYmwXzAFH1jGv19JntnaVIL3bglUNzLnDBXTKUyPWIdIYqBC92O2Vqnnwmn0qXb6NgKQDIB1UGq8eexhfVEAj8HOXanvFJdVoBPAcydIJIasiuod6Vhk= ARC-Authentication-Results: i=1; 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=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1764768693858199.05075137491167; Wed, 3 Dec 2025 05:31:33 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 428AF446C0; Wed, 3 Dec 2025 08:31:33 -0500 (EST) Received: from [172.19.199.74] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id 5905E44BB1; Wed, 3 Dec 2025 08:29:34 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 0F7CF44446; Wed, 3 Dec 2025 08:28:56 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 59F6744531 for ; Wed, 3 Dec 2025 08:28:56 -0500 (EST) Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-333-HYv1MnP_N4SXmx-LbdSlMg-1; Wed, 03 Dec 2025 08:28:54 -0500 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D1ED91955DB0 for ; Wed, 3 Dec 2025 13:28:50 +0000 (UTC) Received: from moe (unknown [10.43.3.236]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 22C6C30002E1 for ; Wed, 3 Dec 2025 13:28:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_SBL_CSS, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764768536; h=from:from: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; bh=7raB/ivhq837CXE4T11p+mLBEW2BXPBzNe8A1gH+B7Q=; b=EuCZdaLrCR/iLzrt3ruZFum1hk0MMBLy2DV9IM3EGr4Jczvy7MbLzgUeldxCw89tG7ee8l +fDsSN90BHUY0b4GTeGxW3+cJgaNzTdKDSxKAEvdPz9tU8tOEKAy6BHHkoG6Q0On40LsTE R9FHbkDlPIejnrT/6y2++DrncH9zdsU= X-MC-Unique: HYv1MnP_N4SXmx-LbdSlMg-1 X-Mimecast-MFC-AGG-ID: HYv1MnP_N4SXmx-LbdSlMg_1764768534 To: devel@lists.libvirt.org Subject: [PATCH 1/2] qemuxmlconftest: Introduce memory-hotplug-numa-preferred test case Date: Wed, 3 Dec 2025 14:28:45 +0100 Message-ID: <4d8bd5ebeb65494adfebe8dd865e0f12c8abe77b.1764768417.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: RLGnveXjGixb1UWd4tbJDKU4hB_Xq4MT4avlivRMs0o_1764768534 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: JOPIUELJ7VKSLGJQ7K6B7SDM5WW7E3NE X-Message-ID-Hash: JOPIUELJ7VKSLGJQ7K6B7SDM5WW7E3NE X-MailFrom: mprivozn@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Michal Privoznik via Devel Reply-To: Michal Privoznik X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1764768696750019200 Content-Type: text/plain; charset="utf-8"; x-default="true" From: Michal Privoznik Signed-off-by: Michal Privoznik Reviewed-by: J=C3=A1n Tomko --- ...-hotplug-numa-preferred.x86_64-latest.args | 44 ++++++++++++ ...y-hotplug-numa-preferred.x86_64-latest.xml | 1 + .../memory-hotplug-numa-preferred.xml | 68 +++++++++++++++++++ tests/qemuxmlconftest.c | 1 + 4 files changed, 114 insertions(+) create mode 100644 tests/qemuxmlconfdata/memory-hotplug-numa-preferred.x86= _64-latest.args create mode 120000 tests/qemuxmlconfdata/memory-hotplug-numa-preferred.x86= _64-latest.xml create mode 100644 tests/qemuxmlconfdata/memory-hotplug-numa-preferred.xml diff --git a/tests/qemuxmlconfdata/memory-hotplug-numa-preferred.x86_64-lat= est.args b/tests/qemuxmlconfdata/memory-hotplug-numa-preferred.x86_64-lates= t.args new file mode 100644 index 0000000000..23a5f76af2 --- /dev/null +++ b/tests/qemuxmlconfdata/memory-hotplug-numa-preferred.x86_64-latest.args @@ -0,0 +1,44 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/var/lib/libvirt/qemu/domain--1-QEMUGuest1 \ +USER=3Dtest \ +LOGNAME=3Dtest \ +XDG_DATA_HOME=3D/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.local/share \ +XDG_CACHE_HOME=3D/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.cache \ +XDG_CONFIG_HOME=3D/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \ +/usr/bin/qemu-system-x86_64 \ +-name guest=3DQEMUGuest1,debug-threads=3Don \ +-S \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/va= r/lib/libvirt/qemu/domain--1-QEMUGuest1/master-key.aes"}' \ +-machine q35,usb=3Doff,dump-guest-core=3Doff,acpi=3Doff \ +-accel tcg \ +-cpu EPYC,monitor=3Don,x2apic=3Don,hypervisor=3Don,acpi=3Don,ss=3Don,erms= =3Don,mpx=3Don,clwb=3Don,umip=3Don,pku=3Don,vaes=3Don,la57=3Don,rdpid=3Don,= pks=3Don,fsrm=3Don,cmpccxadd=3Don,fzrm=3Don,fsrs=3Don,fsrc=3Don,cmp-legacy= =3Don,3dnowext=3Don,3dnow=3Don,xsaveerptr=3Don,wbnoinvd=3Don,npt=3Don,vgif= =3Don,svme-addr-chk=3Don,no-nested-data-bp=3Don,null-sel-clr-base=3Don,vme= =3Doff,xsavec=3Doff,misalignsse=3Doff,osvw=3Doff,topoext=3Doff,fxsr-opt=3Do= ff,nrip-save=3Doff \ +-m size=3D2097152k,slots=3D16,maxmem=3D15243264k \ +-overcommit mem-lock=3Doff \ +-smp 4,sockets=3D4,cores=3D1,threads=3D1 \ +-object '{"qom-type":"memory-backend-ram","id":"ram-node0","size":10737418= 24,"host-nodes":[1],"policy":"preferred"}' \ +-numa node,nodeid=3D0,cpus=3D0-1,memdev=3Dram-node0 \ +-object '{"qom-type":"memory-backend-ram","id":"ram-node1","size":10737418= 24,"host-nodes":[1],"policy":"preferred"}' \ +-numa node,nodeid=3D1,cpus=3D2-3,memdev=3Dram-node1 \ +-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \ +-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 \ +-boot strict=3Don \ +-device '{"driver":"pcie-root-port","port":8,"chassis":1,"id":"pci.1","bus= ":"pcie.0","multifunction":true,"addr":"0x1"}' \ +-device '{"driver":"pcie-root-port","port":9,"chassis":2,"id":"pci.2","bus= ":"pcie.0","addr":"0x1.0x1"}' \ +-device '{"driver":"pcie-root-port","port":10,"chassis":3,"id":"pci.3","bu= s":"pcie.0","addr":"0x1.0x2"}' \ +-device '{"driver":"qemu-xhci","id":"usb","bus":"pci.1","addr":"0x0"}' \ +-object '{"qom-type":"thread-context","id":"tc-memdimm0","node-affinity":[= 0]}' \ +-object '{"qom-type":"memory-backend-file","id":"memdimm0","mem-path":"/de= v/hugepages1G/libvirt/qemu/-1-QEMUGuest1","prealloc":true,"size":1073741824= ,"host-nodes":[0],"policy":"preferred","prealloc-context":"tc-memdimm0"}' \ +-device '{"driver":"pc-dimm","node":0,"memdev":"memdimm0","id":"dimm0","sl= ot":0}' \ +-audiodev '{"id":"audio1","driver":"none"}' \ +-global ICH9-LPC.noreboot=3Doff \ +-watchdog-action reset \ +-device '{"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.2","add= r":"0x0"}' \ +-sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,resource= control=3Ddeny \ +-msg timestamp=3Don diff --git a/tests/qemuxmlconfdata/memory-hotplug-numa-preferred.x86_64-lat= est.xml b/tests/qemuxmlconfdata/memory-hotplug-numa-preferred.x86_64-latest= .xml new file mode 120000 index 0000000000..c26a67a029 --- /dev/null +++ b/tests/qemuxmlconfdata/memory-hotplug-numa-preferred.x86_64-latest.xml @@ -0,0 +1 @@ +memory-hotplug-numa-preferred.xml \ No newline at end of file diff --git a/tests/qemuxmlconfdata/memory-hotplug-numa-preferred.xml b/test= s/qemuxmlconfdata/memory-hotplug-numa-preferred.xml new file mode 100644 index 0000000000..25987a4367 --- /dev/null +++ b/tests/qemuxmlconfdata/memory-hotplug-numa-preferred.xml @@ -0,0 +1,68 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 15243264 + 3145728 + 3145728 + 4 + + + + + hvm + + + + + + + + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + +
+ + +
+ + + + + +
+ + + + +
+ + + + +
+ + + +