From nobody Sun Feb 8 22:07:53 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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 170.10.129.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=1693228305; cv=none; d=zohomail.com; s=zohoarc; b=D7AT89DEeNdd8/h64rfSK0vARQmASARwJHnUIHd4Fw/RvuKC44MrwHh83RdB/Itx1EnxQfL6UhrGdYIz2FeVQHmU3RlZ8UK6ftvPeDiIRGp5tGaZFCuVmhaPQmghwr2xu+EOnuE6eUPE71/JqGAyDv6gLVViITXXsFOvYtSvNUY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693228305; 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=kA1nygtspkiec//Vrji0YgHtsfYAPgpvFPpSJMijaXU=; b=f40l23q3JraGXEbfFFTFYFujKupF0dT4ZhLdOnzPZEbW9PPj25ZDmVK8cpKUVkS5Cl4LYx2tNG+Ln1zJYdlgDsnRlYTkBknhyvHBY9qEo3xYR9BLOI1XLZo/Mi219Wq5RrWNIgg3fLIegk5Sx5MjwJmMtLg9y5+K6WhHW+6dx28= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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 [170.10.129.124]) by mx.zohomail.com with SMTPS id 1693228305923234.40248259525254; Mon, 28 Aug 2023 06:11:45 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-115-h8ITtSksNTSOJgatHNdUwg-1; Mon, 28 Aug 2023 09:11:37 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C929A185A7A3; Mon, 28 Aug 2023 13:11:34 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 572EB112131E; Mon, 28 Aug 2023 13:11:34 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 2145A19465B6; Mon, 28 Aug 2023 13:11:33 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 9BE7819465B3 for ; Mon, 28 Aug 2023 13:11:32 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 6F9972166B27; Mon, 28 Aug 2023 13:11:32 +0000 (UTC) Received: from speedmetal.lan (unknown [10.45.242.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id E7A002166B25 for ; Mon, 28 Aug 2023 13:11:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693228304; 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=kA1nygtspkiec//Vrji0YgHtsfYAPgpvFPpSJMijaXU=; b=iBzECTyEZmUNo4+K70UbqtlBaZ/E3TzK9ffVQbUYmgMR7M1plUUeIdTm5OpCEwT7ZXZ2g7 QumMnRG0G/AiaZX4oHUq1839dfTYmyBuR9IyJRCc5Rz4uGbXHzeO2WJ2UC9jFG7I1dV2/i 9FzxWdJrjAFbSRznKAfUw7cN1osUmb0= X-MC-Unique: h8ITtSksNTSOJgatHNdUwg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 4/9] qemuxml2argvtest: Modernize 'cpu-hotplug-startup' case Date: Mon, 28 Aug 2023 15:11:22 +0200 Message-ID: <32f04a00df5519e3597ebd647b0184ea812d2279.1693227408.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 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: 1693228307771100004 Content-Type: text/plain; charset="utf-8" Signed-off-by: Peter Krempa --- ...args =3D> cpu-hotplug-startup.x86_64-latest.args} | 14 ++++++++------ tests/qemuxml2argvtest.c | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) rename tests/qemuxml2argvdata/{cpu-hotplug-startup.args =3D> cpu-hotplug-s= tartup.x86_64-latest.args} (55%) diff --git a/tests/qemuxml2argvdata/cpu-hotplug-startup.args b/tests/qemuxm= l2argvdata/cpu-hotplug-startup.x86_64-latest.args similarity index 55% rename from tests/qemuxml2argvdata/cpu-hotplug-startup.args rename to tests/qemuxml2argvdata/cpu-hotplug-startup.x86_64-latest.args index a870d56792..009c08d71a 100644 --- a/tests/qemuxml2argvdata/cpu-hotplug-startup.args +++ b/tests/qemuxml2argvdata/cpu-hotplug-startup.x86_64-latest.args @@ -9,12 +9,14 @@ XDG_CONFIG_HOME=3D/var/lib/libvirt/qemu/domain--1-QEMUGue= st1/.config \ /usr/bin/qemu-system-x86_64 \ -name guest=3DQEMUGuest1,debug-threads=3Don \ -S \ --object secret,id=3DmasterKey0,format=3Draw,file=3D/var/lib/libvirt/qemu/d= omain--1-QEMUGuest1/master-key.aes \ --machine pc,usb=3Doff,dump-guest-core=3Doff \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/va= r/lib/libvirt/qemu/domain--1-QEMUGuest1/master-key.aes"}' \ +-machine pc,usb=3Doff,dump-guest-core=3Doff,memory-backend=3Dpc.ram,acpi= =3Doff \ -accel tcg \ +-cpu qemu64 \ -m size=3D219136k \ +-object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":224395264}'= \ -overcommit mem-lock=3Doff \ --smp 1,maxcpus=3D6,sockets=3D3,cores=3D2,threads=3D1 \ +-smp 1,maxcpus=3D6,sockets=3D3,dies=3D1,cores=3D2,threads=3D1 \ -uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \ -display none \ -no-user-config \ @@ -23,9 +25,9 @@ XDG_CONFIG_HOME=3D/var/lib/libvirt/qemu/domain--1-QEMUGue= st1/.config \ -mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol \ -rtc base=3Dutc \ -no-shutdown \ --no-acpi \ -boot strict=3Don \ --usb \ +-device '{"driver":"piix3-usb-uhci","id":"usb","bus":"pci.0","addr":"0x1.0= x2"}' \ -audiodev '{"id":"audio1","driver":"none"}' \ --device virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x2 \ +-device '{"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.0","add= r":"0x2"}' \ +-sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,resource= control=3Ddeny \ -msg timestamp=3Don diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 6e63f8a2eb..1e6cbbf028 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -2513,7 +2513,7 @@ mymain(void) DO_TEST_CAPS_LATEST_PARSE_ERROR("virtio-iommu-invalid-address-type"); DO_TEST_CAPS_LATEST_PARSE_ERROR("virtio-iommu-invalid-address"); - DO_TEST("cpu-hotplug-startup", QEMU_CAPS_QUERY_HOTPLUGGABLE_CPUS); + DO_TEST_CAPS_LATEST("cpu-hotplug-startup"); DO_TEST_CAPS_ARCH_LATEST_PARSE_ERROR("cpu-hotplug-granularity", "ppc64= "); DO_TEST_CAPS_LATEST("virtio-options"); --=20 2.41.0