From nobody Sun Feb 8 01:30:39 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 1642686858973797.1183615344759; Thu, 20 Jan 2022 05:54: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-544-BITjZBNSN_CKVr0Paeptpg-1; Thu, 20 Jan 2022 08:54:16 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3018984DA58; Thu, 20 Jan 2022 13:54:11 +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 072607E2EE; Thu, 20 Jan 2022 13:54:11 +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 C30CB18218B7; Thu, 20 Jan 2022 13:54:10 +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 20KDr8xG008875 for ; Thu, 20 Jan 2022 08:53:08 -0500 Received: by smtp.corp.redhat.com (Postfix) id 3231F40F9D74; Thu, 20 Jan 2022 13:53:08 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2E16840F9D73 for ; Thu, 20 Jan 2022 13:53:08 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (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 1573885A5A8 for ; Thu, 20 Jan 2022 13:53:08 +0000 (UTC) Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-314-NcEcQ9QjNC21NA9LeoZr1Q-1; Thu, 20 Jan 2022 08:53:05 -0500 Received: by mail-oi1-f170.google.com with SMTP id x193so9059750oix.0 for ; Thu, 20 Jan 2022 05:53:05 -0800 (PST) Received: from rekt.COMFAST ([191.8.61.226]) by smtp.gmail.com with ESMTPSA id a26sm1574102oiy.26.2022.01.20.05.53.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 05:53:04 -0800 (PST) X-MC-Unique: BITjZBNSN_CKVr0Paeptpg-1 X-MC-Unique: NcEcQ9QjNC21NA9LeoZr1Q-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=6Pl3wHEtLkPvMvnMuxDiva8+Pssa97/DPFpAZ0jRhqk=; b=u4m7kwEARZuOvXbuGVJAMY4SDjW7iqb3pAEXmwJehLYSrVQa2z1g3ZWMcsJqOlUoEZ ktTgFVp4taAlxwGXqfQQdYmzTwpBUDpRU1V/lUBV+oyBR23LFN9vsUdovz4ezchxHEC5 Hk2CrAdsIfQiTzhq8xUkTcAINW/BKhyr41eFqecG28BH5atKYYZ2io/njv10b8aaq3Dh jgdCjezIbcN/RY6DVkRYHDOPdlqlahlxYhyj1ceGYlzPqTF4fFt2kywxm0OY9FCX7qet s769V9amY7auTIFtpMymxV+W+80lF8LD3oaNmYWhe8Ut0xMu5ubUMdJsK8j3Xetf0tvc 48NQ== X-Gm-Message-State: AOAM531a9j9uvV5LJgF1rZEGTSShM49rBggfWnmZMGpvtjjqPsScYyKw R8p5xMeTBDfa8jbmupSrgbDxUEsRjLg= X-Google-Smtp-Source: ABdhPJwNSRWuMS/FtZaU2AVyC+S9LMy1Ggd/mm1Njtg88W2yQF13mS9Gcwi86YpdIgbWOv35zyfGEQ== X-Received: by 2002:aca:b103:: with SMTP id a3mr7687127oif.14.1642686784591; Thu, 20 Jan 2022 05:53:04 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH 08/33] tests: add basic PowerNV8 test Date: Thu, 20 Jan 2022 10:52:11 -0300 Message-Id: <20220120135236.719924-9-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.79 on 10.5.11.12 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: 1642686860190100001 Content-Type: text/plain; charset="utf-8" We're now able to boot a simple PowerNV8 domain in Libvirt. Signed-off-by: Daniel Henrique Barboza --- tests/qemuxml2argvdata/powernv8-basic.args | 31 +++++++++++++++++++++ tests/qemuxml2argvdata/powernv8-basic.xml | 16 +++++++++++ tests/qemuxml2argvtest.c | 3 ++ tests/qemuxml2xmloutdata/powernv8-basic.xml | 28 +++++++++++++++++++ tests/qemuxml2xmltest.c | 3 ++ tests/testutilsqemu.c | 2 +- 6 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 tests/qemuxml2argvdata/powernv8-basic.args create mode 100644 tests/qemuxml2argvdata/powernv8-basic.xml create mode 100644 tests/qemuxml2xmloutdata/powernv8-basic.xml diff --git a/tests/qemuxml2argvdata/powernv8-basic.args b/tests/qemuxml2arg= vdata/powernv8-basic.args new file mode 100644 index 0000000000..822cf62bdf --- /dev/null +++ b/tests/qemuxml2argvdata/powernv8-basic.args @@ -0,0 +1,31 @@ +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 powernv8,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 \ +-usb \ +-chardev pty,id=3Dcharserial0 \ +-device isa-serial,chardev=3Dcharserial0,id=3Dserial0,index=3D0 \ +-msg timestamp=3Don diff --git a/tests/qemuxml2argvdata/powernv8-basic.xml b/tests/qemuxml2argv= data/powernv8-basic.xml new file mode 100644 index 0000000000..a92fc1282c --- /dev/null +++ b/tests/qemuxml2argvdata/powernv8-basic.xml @@ -0,0 +1,16 @@ + + 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 9d2de2a569..7fcfcc83f1 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -2217,6 +2217,9 @@ mymain(void) DO_TEST_PARSE_ERROR_NOCAPS("seclabel-multiple"); DO_TEST_PARSE_ERROR_NOCAPS("seclabel-device-duplicates"); =20 + DO_TEST("powernv8-basic", + QEMU_CAPS_DEVICE_ISA_SERIAL); + DO_TEST("pseries-basic", QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE, QEMU_CAPS_DEVICE_SPAPR_VTY); diff --git a/tests/qemuxml2xmloutdata/powernv8-basic.xml b/tests/qemuxml2xm= loutdata/powernv8-basic.xml new file mode 100644 index 0000000000..7b798b979d --- /dev/null +++ b/tests/qemuxml2xmloutdata/powernv8-basic.xml @@ -0,0 +1,28 @@ + + QEMUGuest1 + b20fcfe3-4a0a-4039-8735-9e024256e0f7 + 2097152 + 2097152 + 1 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu-system-ppc64 + + + + + + + + + + + diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index ce1cac31c8..5a19fdbda5 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -637,6 +637,9 @@ mymain(void) QEMU_CAPS_OBJECT_RNG_EGD); DO_TEST_CAPS_LATEST("virtio-rng-builtin"); =20 + DO_TEST("powernv8-basic", + QEMU_CAPS_DEVICE_ISA_SERIAL); + DO_TEST("pseries-nvram", QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE, QEMU_CAPS_DEVICE_NVRAM); diff --git a/tests/testutilsqemu.c b/tests/testutilsqemu.c index cb665e501b..5d29125ffa 100644 --- a/tests/testutilsqemu.c +++ b/tests/testutilsqemu.c @@ -54,7 +54,7 @@ static const char *const arm_machines[] =3D { "vexpress-a9", "virt", NULL }; static const char *const ppc64_machines[] =3D { - "pseries", NULL + "pseries", "powernv8", NULL }; static const char *const ppc_machines[] =3D { "ppce500", NULL --=20 2.34.1