From nobody Sun Feb 8 16:12:15 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=1641462378; cv=none; d=zohomail.com; s=zohoarc; b=Pl2JDbsg46mbBAJq6K8C9tSpbIMl2r6obhXZE2H74a62HoV8IceKeT/+oFEqEIAUrgYD8VD6c6JfpbgYTFI7l2WmI9cuE2pvHhT2JQX2/fjtYZoKckHUQftCx1E7Hcpzp1E9kZzTO052Ql5hc1SMn+xG7PmCbkld1DviU8zKaJ0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1641462378; 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=7Px4xroZV4gwP13I5m4RawAKDg0Yccvcj8rn5gDkl0U=; b=HIWvARX2kR54rwzQGfgrNKuS5WM90JiW+aBuT7HAbPoD8eS84QV7qEdwPTungsFXgcA13wfyW+jAuTJ6ZQSpkksiRfn8sqyBxs3joB47iI9XfEA6onBkq6nWBQUVRjF5LfYJVNazcgiaqPBMWAaq7+V1+JoBwL4tfLkhVW0grN4= 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 1641462378233636.1009436401712; Thu, 6 Jan 2022 01:46:18 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-357-nlUBko6gOwmP1oMS13cSqw-1; Thu, 06 Jan 2022 04:46:13 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F32B21015DC8; Thu, 6 Jan 2022 09:46:07 +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 BD6CA60C5A; Thu, 6 Jan 2022 09:46:07 +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 7BC9A1802E2D; Thu, 6 Jan 2022 09:46:07 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 2069k4bi005818 for ; Thu, 6 Jan 2022 04:46:04 -0500 Received: by smtp.corp.redhat.com (Postfix) id 553447CAD2; Thu, 6 Jan 2022 09:46:04 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.34]) by smtp.corp.redhat.com (Postfix) with ESMTP id B6D6D7D474 for ; Thu, 6 Jan 2022 09:46:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1641462377; 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=7Px4xroZV4gwP13I5m4RawAKDg0Yccvcj8rn5gDkl0U=; b=HYLR9xOnEXdijyMKsR14oSaE8cS2mghHVLnL3QQ2DqBb2Hk2hK9oFXwV6j4mABrq9R0FZ4 82Luinp59CF/4OMUdLyHHHsLoyqfOA74IxiRoGcPp25tEovQ+6XoqcvUG3OiQ6wncx0XyJ GTjs7RWBDrPd9MhG2dFltIJTqG6ICf8= X-MC-Unique: nlUBko6gOwmP1oMS13cSqw-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 18/21] qemuxml2argvtest: Enable qemuxml2argv version of 'blkdeviotune' test Date: Thu, 6 Jan 2022 10:44:17 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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.14 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: 1641462380288100006 Content-Type: text/plain; charset="utf-8" Also ensure that the emulator and architecture are correct for DO_TEST_CAPS_LATEST. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- .../blkdeviotune.x86_64-latest.args | 40 +++++++++++++++++++ tests/qemuxml2argvdata/blkdeviotune.xml | 4 +- tests/qemuxml2argvtest.c | 1 + .../blkdeviotune.x86_64-latest.xml | 4 +- 4 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 tests/qemuxml2argvdata/blkdeviotune.x86_64-latest.args diff --git a/tests/qemuxml2argvdata/blkdeviotune.x86_64-latest.args b/tests= /qemuxml2argvdata/blkdeviotune.x86_64-latest.args new file mode 100644 index 0000000000..b229b8a7dc --- /dev/null +++ b/tests/qemuxml2argvdata/blkdeviotune.x86_64-latest.args @@ -0,0 +1,40 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/tmp/lib/domain--1-QEMUGuest1 \ +USER=3Dtest \ +LOGNAME=3Dtest \ +XDG_DATA_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.local/share \ +XDG_CACHE_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.cache \ +XDG_CONFIG_HOME=3D/tmp/lib/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":"/tm= p/lib/domain--1-QEMUGuest1/master-key.aes"}' \ +-machine pc,usb=3Doff,dump-guest-core=3Doff,memory-backend=3Dpc.ram \ +-accel tcg \ +-cpu qemu64 \ +-m 214 \ +-object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":224395264}'= \ +-overcommit mem-lock=3Doff \ +-smp 1,sockets=3D1,cores=3D1,threads=3D1 \ +-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 \ +-no-acpi \ +-boot strict=3Don \ +-device '{"driver":"piix3-usb-uhci","id":"usb","bus":"pci.0","addr":"0x1.0= x2"}' \ +-blockdev '{"driver":"host_device","filename":"/dev/HostVG/QEMUGuest1","no= de-name":"libvirt-2-storage","cache":{"direct":true,"no-flush":false},"auto= -read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-2-format","read-only":false,"cache":{"dir= ect":true,"no-flush":false},"driver":"qcow2","file":"libvirt-2-storage"}' \ +-device '{"driver":"ide-hd","bus":"ide.0","unit":0,"drive":"libvirt-2-form= at","id":"ide0-0-0","bootindex":1,"write-cache":"on"}' \ +-blockdev '{"driver":"host_device","filename":"/dev/HostVG/QEMUGuest2","no= de-name":"libvirt-1-storage","cache":{"direct":true,"no-flush":false},"auto= -read-only":true,"discard":"unmap"}' \ +-blockdev '{"node-name":"libvirt-1-format","read-only":false,"cache":{"dir= ect":true,"no-flush":false},"driver":"qcow2","file":"libvirt-1-storage"}' \ +-device '{"driver":"ide-hd","bus":"ide.0","unit":1,"drive":"libvirt-1-form= at","id":"ide0-0-1","write-cache":"on"}' \ +-audiodev '{"id":"audio1","driver":"none"}' \ +-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/qemuxml2argvdata/blkdeviotune.xml b/tests/qemuxml2argvda= ta/blkdeviotune.xml index 268b4fb3af..7cebb992a9 100644 --- a/tests/qemuxml2argvdata/blkdeviotune.xml +++ b/tests/qemuxml2argvdata/blkdeviotune.xml @@ -5,7 +5,7 @@ 219100 1 - hvm + hvm @@ -13,7 +13,7 @@ restart destroy - /usr/bin/qemu-system-i386 + /usr/bin/qemu-system-x86_64 diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 46df0e935e..a6165f6760 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -2190,6 +2190,7 @@ mymain(void) DO_TEST_NOCAPS("numad-auto-memory-vcpu-cpuset"); DO_TEST_NOCAPS("numad-auto-memory-vcpu-no-cpuset-and-placement"); DO_TEST_NOCAPS("numad-static-memory-auto-vcpu"); + DO_TEST_CAPS_LATEST("blkdeviotune"); DO_TEST_CAPS_VER("blkdeviotune-max", "4.1.0"); DO_TEST_CAPS_LATEST("blkdeviotune-max"); DO_TEST_CAPS_VER("blkdeviotune-group-num", "4.1.0"); diff --git a/tests/qemuxml2xmloutdata/blkdeviotune.x86_64-latest.xml b/test= s/qemuxml2xmloutdata/blkdeviotune.x86_64-latest.xml index a1032019d6..b536faac13 100644 --- a/tests/qemuxml2xmloutdata/blkdeviotune.x86_64-latest.xml +++ b/tests/qemuxml2xmloutdata/blkdeviotune.x86_64-latest.xml @@ -5,7 +5,7 @@ 219100 1 - hvm + hvm @@ -16,7 +16,7 @@ restart destroy - /usr/bin/qemu-system-i386 + /usr/bin/qemu-system-x86_64 --=20 2.31.1