From nobody Tue Feb 10 01:19:44 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=1676909618; cv=none; d=zohomail.com; s=zohoarc; b=ZlTJKx8mAsq4FyEetGvt6YFz4qg7QDgtcW6O4IfdMJaf8vrVvMb9G6lHIiNwmsLPFNiHsP1eSuDrEFQ/KoEQGDLAzLSLafL625MrH9mKx9W/xpVNqH6y5XmLlmjUAmBkW7XRUj0xemn/wtHs76cwhZFfxoyX/2oepRHqF/6VrHw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1676909618; 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=Jo4nclK4oMDgA6eX/RCbGTI9S9ZVbdGklxUcXFsk2K4=; b=hs0XjhMw1JEPN0uhl0bfLEI7jjCHTjdHeTm4+LogEr61Phng+1TM230Mk5eIiP2N+c1LmLqO3EbuHP1cxeI0d0VygwDB6arcDOWBJ+3TKSiJfjnbM3fRmtzChY2HzuHrW/XSuGLZbPPNTCfsnb8TqsMx3NWU+8oVsDAyODkVAQc= 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 1676909618074781.3615128673631; Mon, 20 Feb 2023 08:13:38 -0800 (PST) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-671-_82gXgssPd2kCB64Kv7cqQ-1; Mon, 20 Feb 2023 11:13:33 -0500 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5F0083811F31; Mon, 20 Feb 2023 16:13:31 +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 49F75492B04; Mon, 20 Feb 2023 16:13:31 +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 DA3EB1946A47; Mon, 20 Feb 2023 16:13:15 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id DEE0F1946A40 for ; Mon, 20 Feb 2023 16:13:14 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id DAD23492B08; Mon, 20 Feb 2023 16:13:14 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.43.2.106]) by smtp.corp.redhat.com (Postfix) with ESMTP id 81A4A492B05 for ; Mon, 20 Feb 2023 16:13:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676909617; 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=Jo4nclK4oMDgA6eX/RCbGTI9S9ZVbdGklxUcXFsk2K4=; b=QEawoJnZ24QOeoIY6ybBeyIOYAMiwbZ/VKqeAh2YrF/5KKWs+dcMZN1bDf5cejlSK23vkG m1LfpOHHB6Lfh3biqX3pQYstjdpxT0p7sEKv1TairCTqm6EIicB+/OPesjMkTYAd8JsBit S9SpRITite3kS3HBbrymX/Ta2vETFQM= X-MC-Unique: _82gXgssPd2kCB64Kv7cqQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Kristina Hanicova To: libvir-list@redhat.com Subject: [PATCH v2 5/6] tests: add case for pvpanic-pci without address Date: Mon, 20 Feb 2023 17:12:58 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 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.9 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: 1676909619501100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Kristina Hanicova --- ...pci-no-address-aarch64.aarch64-latest.args | 36 +++++++++++++++++++ .../pvpanic-pci-no-address-aarch64.xml | 18 ++++++++++ tests/qemuxml2argvtest.c | 1 + ...-pci-no-address-aarch64.aarch64-latest.xml | 32 +++++++++++++++++ tests/qemuxml2xmltest.c | 1 + 5 files changed, 88 insertions(+) create mode 100644 tests/qemuxml2argvdata/pvpanic-pci-no-address-aarch64.a= arch64-latest.args create mode 100644 tests/qemuxml2argvdata/pvpanic-pci-no-address-aarch64.x= ml create mode 100644 tests/qemuxml2xmloutdata/pvpanic-pci-no-address-aarch64= .aarch64-latest.xml diff --git a/tests/qemuxml2argvdata/pvpanic-pci-no-address-aarch64.aarch64-= latest.args b/tests/qemuxml2argvdata/pvpanic-pci-no-address-aarch64.aarch64= -latest.args new file mode 100644 index 0000000000..966ecd7dff --- /dev/null +++ b/tests/qemuxml2argvdata/pvpanic-pci-no-address-aarch64.aarch64-latest.= args @@ -0,0 +1,36 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/tmp/lib/domain--1-guest \ +USER=3Dtest \ +LOGNAME=3Dtest \ +XDG_DATA_HOME=3D/tmp/lib/domain--1-guest/.local/share \ +XDG_CACHE_HOME=3D/tmp/lib/domain--1-guest/.cache \ +XDG_CONFIG_HOME=3D/tmp/lib/domain--1-guest/.config \ +/usr/bin/qemu-system-aarch64 \ +-name guest=3Dguest,debug-threads=3Don \ +-S \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/tm= p/lib/domain--1-guest/master-key.aes"}' \ +-blockdev '{"driver":"file","filename":"/usr/share/AAVMF/AAVMF_CODE.fd","n= ode-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"= }' \ +-blockdev '{"node-name":"libvirt-pflash0-format","read-only":true,"driver"= :"raw","file":"libvirt-pflash0-storage"}' \ +-blockdev '{"driver":"file","filename":"/var/lib/libvirt/qemu/nvram/guest_= VARS.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"disca= rd":"unmap"}' \ +-blockdev '{"node-name":"libvirt-pflash1-format","read-only":false,"driver= ":"raw","file":"libvirt-pflash1-storage"}' \ +-machine virt-6.0,usb=3Doff,gic-version=3D2,dump-guest-core=3Doff,memory-b= ackend=3Dmach-virt.ram,pflash0=3Dlibvirt-pflash0-format,pflash1=3Dlibvirt-p= flash1-format \ +-accel tcg \ +-cpu cortex-a15 \ +-m 1024 \ +-object '{"qom-type":"memory-backend-ram","id":"mach-virt.ram","size":1073= 741824}' \ +-overcommit mem-lock=3Doff \ +-smp 1,sockets=3D1,cores=3D1,threads=3D1 \ +-uuid 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 \ +-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 \ +-audiodev '{"id":"audio1","driver":"none"}' \ +-sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,resource= control=3Ddeny \ +-device '{"driver":"pvpanic-pci","bus":"pcie.0","addr":"0x1"}' \ +-msg timestamp=3Don diff --git a/tests/qemuxml2argvdata/pvpanic-pci-no-address-aarch64.xml b/te= sts/qemuxml2argvdata/pvpanic-pci-no-address-aarch64.xml new file mode 100644 index 0000000000..e992405087 --- /dev/null +++ b/tests/qemuxml2argvdata/pvpanic-pci-no-address-aarch64.xml @@ -0,0 +1,18 @@ + + guest + 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 + 1048576 + 1 + + hvm + + + + + + /usr/bin/qemu-system-aarch64 + + + + + diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 4e3815559c..b897814a5d 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -2618,6 +2618,7 @@ mymain(void) DO_TEST_CAPS_LATEST("pvpanic-pci-x86_64"); DO_TEST_CAPS_ARCH_LATEST("pvpanic-pci-aarch64", "aarch64"); DO_TEST_CAPS_ARCH_LATEST_PARSE_ERROR("pvpanic-pci-invalid-address-aarc= h64", "aarch64"); + DO_TEST_CAPS_ARCH_LATEST("pvpanic-pci-no-address-aarch64", "aarch64"); =20 DO_TEST_CAPS_ARCH_VER_FULL("fips-enabled", "x86_64", "5.1.0", ARG_FLAG= S, FLAG_FIPS_HOST); DO_TEST_CAPS_ARCH_LATEST_FULL("fips-enabled", "x86_64", ARG_FLAGS, FLA= G_FIPS_HOST); diff --git a/tests/qemuxml2xmloutdata/pvpanic-pci-no-address-aarch64.aarch6= 4-latest.xml b/tests/qemuxml2xmloutdata/pvpanic-pci-no-address-aarch64.aarc= h64-latest.xml new file mode 100644 index 0000000000..2812242023 --- /dev/null +++ b/tests/qemuxml2xmloutdata/pvpanic-pci-no-address-aarch64.aarch64-lates= t.xml @@ -0,0 +1,32 @@ + + guest + 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 + 1048576 + 1048576 + 1 + + hvm + + + + + + + + cortex-a15 + + + destroy + restart + destroy + + /usr/bin/qemu-system-aarch64 + + +