From nobody Sun Feb 8 05:40:45 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1642686839299749.305287107565; Thu, 20 Jan 2022 05:53:59 -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-578-d36XzEpANpixNyc9vsUK4g-1; Thu, 20 Jan 2022 08:53:56 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9220B18982A4; Thu, 20 Jan 2022 13:53:51 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 50C6A1091EDB; Thu, 20 Jan 2022 13:53:51 +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 12EF14A70A; Thu, 20 Jan 2022 13:53:51 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 20KDrnAp010080 for ; Thu, 20 Jan 2022 08:53:49 -0500 Received: by smtp.corp.redhat.com (Postfix) id 0F5BB40F9D74; Thu, 20 Jan 2022 13:53:49 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast10.extmail.prod.ext.rdu2.redhat.com [10.11.55.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0ADD740F9D73 for ; Thu, 20 Jan 2022 13:53:49 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E17781C00F66 for ; Thu, 20 Jan 2022 13:53:48 +0000 (UTC) Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-142-Shof5fG9Mk68r4xp8Aal1w-1; Thu, 20 Jan 2022 08:53:47 -0500 Received: by mail-ot1-f43.google.com with SMTP id y11-20020a0568302a0b00b0059a54d66106so7712815otu.0 for ; Thu, 20 Jan 2022 05:53:46 -0800 (PST) Received: from rekt.COMFAST ([191.8.61.226]) by smtp.gmail.com with ESMTPSA id a26sm1574102oiy.26.2022.01.20.05.53.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 05:53:46 -0800 (PST) X-MC-Unique: d36XzEpANpixNyc9vsUK4g-1 X-MC-Unique: Shof5fG9Mk68r4xp8Aal1w-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iXoUz8XswX7kOrVUdT25V9uTpv+/1IYkriq5I/nDAnI=; b=Kqbl3c+t5m0v8e6TJaVE2pANSA9C2kAf9+6MlUFQV5u+AgxmwpWRWvk603vDDgeUEs 95Ln/TUzrOAkcwfQi7DCYmu4peZ4adG48k0lbIyCEtcGFHIvMb4qMjvsWCHAncdCwJXF Mm/Sg1CZ8cXRIPDbet1n3tytKWAHqz4JFKEFxCoS4VMGi26ldEYDfP1heGnTYNGX8Wgs sBhnd0X9k+uocNhb9YawFW58uyHX24/XE4rhEfEo4bUuEKUo1DdFFYNOlP4+5g476q8i pAQorzCGcFn+HM82srHp9DLI67W0YTilpaRfKQfBTl3xZdYA4CLEWdmuxq2rmucwI98H JCTQ== X-Gm-Message-State: AOAM533eZ/8qGmcitkBR5Ai9bTZp8epgPCa7LWb9+Oz2mK7QpUK68222 zzAIvL71GA7F1JaOFFiLmEtrIUgkyNM= X-Google-Smtp-Source: ABdhPJw9gbtyGuQzbly4ynE3D0L3MrO2BX/i9h5jKBJ2LYA5OGc2yWg1KrSvfRkwENMVJAAFR6hORg== X-Received: by 2002:a05:6830:1115:: with SMTP id w21mr14612863otq.367.1642686826210; Thu, 20 Jan 2022 05:53:46 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH 33/33] tests: add PowerNV9 tests Date: Thu, 20 Jan 2022 10:52:36 -0300 Message-Id: <20220120135236.719924-34-danielhb413@gmail.com> In-Reply-To: <20220120135236.719924-1-danielhb413@gmail.com> References: <20220120135236.719924-1-danielhb413@gmail.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-loop: libvir-list@redhat.com Cc: fbarrat@linux.ibm.com, danielhb413@gmail.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.84 on 10.5.11.22 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-ZM-MESSAGEID: 1642686839788100003 Content-Type: text/plain; charset="utf-8" Since the nuances of PowerNV PHBs and root ports were already handled when adding support for pnv-phb3* devices, we're already set to support PowerNV9 PHBs and root ports as well. Signed-off-by: Daniel Henrique Barboza --- tests/qemuxml2argvdata/powernv9-dupPHBs.err | 1 + tests/qemuxml2argvdata/powernv9-dupPHBs.xml | 27 ++++++++++++++ .../qemuxml2argvdata/powernv9-root-port.args | 33 +++++++++++++++++ tests/qemuxml2argvdata/powernv9-root-port.xml | 17 +++++++++ tests/qemuxml2argvtest.c | 7 ++++ .../qemuxml2xmloutdata/powernv9-root-port.xml | 36 +++++++++++++++++++ tests/qemuxml2xmltest.c | 4 +++ tests/testutilsqemu.c | 2 +- 8 files changed, 126 insertions(+), 1 deletion(-) create mode 100644 tests/qemuxml2argvdata/powernv9-dupPHBs.err create mode 100644 tests/qemuxml2argvdata/powernv9-dupPHBs.xml create mode 100644 tests/qemuxml2argvdata/powernv9-root-port.args create mode 100644 tests/qemuxml2argvdata/powernv9-root-port.xml create mode 100644 tests/qemuxml2xmloutdata/powernv9-root-port.xml diff --git a/tests/qemuxml2argvdata/powernv9-dupPHBs.err b/tests/qemuxml2ar= gvdata/powernv9-dupPHBs.err new file mode 100644 index 0000000000..bc5879640d --- /dev/null +++ b/tests/qemuxml2argvdata/powernv9-dupPHBs.err @@ -0,0 +1 @@ +XML error: Multiple pnv-phb controllers with same chip-id and index diff --git a/tests/qemuxml2argvdata/powernv9-dupPHBs.xml b/tests/qemuxml2ar= gvdata/powernv9-dupPHBs.xml new file mode 100644 index 0000000000..49af69e6c4 --- /dev/null +++ b/tests/qemuxml2argvdata/powernv9-dupPHBs.xml @@ -0,0 +1,27 @@ + + QEMUGuest1 + b20fcfe3-4a0a-4039-8735-9e024256e0f7 + 2097152 + 1 + + hvm + + + /usr/bin/qemu-system-ppc64 + + + + + + + + + + + + + + + + + diff --git a/tests/qemuxml2argvdata/powernv9-root-port.args b/tests/qemuxml= 2argvdata/powernv9-root-port.args new file mode 100644 index 0000000000..a754f2bc17 --- /dev/null +++ b/tests/qemuxml2argvdata/powernv9-root-port.args @@ -0,0 +1,33 @@ +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 \ +QEMU_AUDIO_DRV=3Dnone \ +/usr/bin/qemu-system-ppc64 \ +-name guest=3DQEMUGuest1,debug-threads=3Don \ +-S \ +-object secret,id=3DmasterKey0,format=3Draw,file=3D/tmp/lib/domain--1-QEMU= Guest1/master-key.aes \ +-machine powernv9,usb=3Doff,dump-guest-core=3Doff \ +-accel tcg \ +-m 2048 \ +-realtime mlock=3Doff \ +-smp 1,sockets=3D1,cores=3D1,threads=3D1 \ +-uuid b20fcfe3-4a0a-4039-8735-9e024256e0f7 \ +-display none \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=3Dcharmonitor,path=3D/tmp/lib/domain--1-QEMUGuest1/moni= tor.sock,server=3Don,wait=3Doff \ +-mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol \ +-rtc base=3Dutc \ +-no-shutdown \ +-boot strict=3Don \ +-device pnv-phb4,index=3D0,chip-id=3D0,id=3Dpcie.0 \ +-device pnv-phb4-root-port,port=3D0,chassis=3D1,id=3Dpci.1,bus=3Dpcie.0,ad= dr=3D0x0 \ +-usb \ +-chardev pty,id=3Dcharserial0 \ +-device isa-serial,chardev=3Dcharserial0,id=3Dserial0,index=3D0 \ +-msg timestamp=3Don diff --git a/tests/qemuxml2argvdata/powernv9-root-port.xml b/tests/qemuxml2= argvdata/powernv9-root-port.xml new file mode 100644 index 0000000000..dfd74446f9 --- /dev/null +++ b/tests/qemuxml2argvdata/powernv9-root-port.xml @@ -0,0 +1,17 @@ + + QEMUGuest1 + b20fcfe3-4a0a-4039-8735-9e024256e0f7 + 2097152 + 1 + + hvm + + + /usr/bin/qemu-system-ppc64 + + + + + + + diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index ff8698927e..ed3abcc13b 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -2227,6 +2227,13 @@ mymain(void) DO_TEST_PARSE_ERROR("powernv8-dupPHBs", QEMU_CAPS_DEVICE_ISA_SERIAL, QEMU_CAPS_DEVICE_PNV_PHB3); + DO_TEST("powernv9-root-port", + QEMU_CAPS_DEVICE_ISA_SERIAL, + QEMU_CAPS_DEVICE_PNV_PHB4, + QEMU_CAPS_DEVICE_PNV_PHB4_ROOT_PORT); + DO_TEST_PARSE_ERROR("powernv9-dupPHBs", + QEMU_CAPS_DEVICE_ISA_SERIAL, + QEMU_CAPS_DEVICE_PNV_PHB4); =20 DO_TEST("pseries-basic", QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE, diff --git a/tests/qemuxml2xmloutdata/powernv9-root-port.xml b/tests/qemuxm= l2xmloutdata/powernv9-root-port.xml new file mode 100644 index 0000000000..5649526969 --- /dev/null +++ b/tests/qemuxml2xmloutdata/powernv9-root-port.xml @@ -0,0 +1,36 @@ + + QEMUGuest1 + b20fcfe3-4a0a-4039-8735-9e024256e0f7 + 2097152 + 2097152 + 1 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu-system-ppc64 + + + + + + + +
+ + + + + + + + + +