From nobody Mon Nov 23 04:26:17 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1795069897; cv=none; d=zohomail.com; s=zohoarc; b=iOb/Ipr+9ghN0sn4c/IpgGv4zT/8uJownY9gVt1+4svJnwKFWn7s1RUZmw+7ZO7mv/bV6y68wwGd7oAeJclG2llYpDWjVyy0MTDiWTI2EeOl0JgMdkHDDnCn3fmMx8Cf9veF5dwOYNDGGKUtiYnYRtJuevorWpqqNrwoScFCHbw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795069897; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=6n16mvNJsEEIpRyHreXXXAE/cMs1czam33NMUNflIxE=; b=TEmW2oZLh1EOqzBrDBkz8EDU7JUO7LXFqOgOhvNb0jlgcYCsk2Yv2owVo9W4tgKjNgqr+kbU3KF2oSELYqrhR+yUxcKkOmjY/9EQzKbZtIccmy1CFqD+Dqu6r3OYOzj15+tGX07Uk4auqWpHNZGx3UCILM7xefF0gN34c1bK6w8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795069897187406.2331354835736; Wed, 18 Nov 2026 22:31:37 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xTvfX-0004R7-19; Thu, 19 Nov 2026 01:30:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xTvfD-0004Kr-22; Thu, 19 Nov 2026 01:30:33 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xTvfA-0005Tr-IP; Thu, 19 Nov 2026 01:30:30 -0500 Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AJ4jG2D1531860; Thu, 19 Nov 2026 06:30:25 GMT Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4j105rpyuq-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 19 Nov 2026 06:30:24 +0000 (GMT) Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 6AJ4xPbf2919850; Thu, 19 Nov 2026 06:30:24 GMT Received: from smtprelay03.wdc07v.mail.ibm.com ([172.16.1.70]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 4j1bb5by6b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Nov 2026 06:30:24 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (smtpav06.dal12v.mail.ibm.com [10.241.53.105]) by smtprelay03.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 6AJ6TVFw27591412 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Nov 2026 06:29:32 GMT Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 43D8558055; Thu, 19 Nov 2026 06:30:22 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B7E0158043; Thu, 19 Nov 2026 06:30:16 +0000 (GMT) Received: from localhost.localdomain (unknown [9.124.221.175]) by smtpav06.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 19 Nov 2026 06:30:15 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp1; bh=6n16mv NJsEEIpRyHreXXXAE/cMs1czam33NMUNflIxE=; b=EMdAtu72xAmLcDH9APM7Kv Dro0HAQw4hYcqzKGILkrdAjkp7Lq6eal3+mOPxFwmt2TfXWEXrrD2+wnc07q7XaS 5yxdiTcZPEuqs8YboAjV+cfsKoSwGfeLVh0vWObEmS+uxucKLEPfQt9OiErDf3YB EAGNHY9ZoLYmUsQodY6VXQeLtGAVWt0H9ERHQ7JyQFqg2l6U2aOiGILLNFbZy8Gg hvEtiJs1XGKSZatIimaipvSzkpskp4iQ58e7B4JDXJuy96Od1jMhnItgNTguDaLQ oFyYs5r9o931Y7Eh9C830XPR2UsQjUA8lJe5FSkxJB8ZeFziOgL/8IaovyI9Xakw == From: Anushree Mathur To: Harsh Prateek Bora , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Nicholas Piggin , qemu-devel@nongnu.org, qemu-ppc@nongnu.org Cc: Anushree Mathur , Thomas Huth , Amit Machhiwal , Miles Glenn , Aditya Gupta , misanjum@linux.ibm.com, Chinmay Rath , Utkarsh Verma Subject: [PATCH v2 1/4] tests/functional/ppc64: add pseries CPU hotplug test Date: Thu, 19 Nov 2026 11:59:47 +0530 Message-ID: <20261119062951.83498-2-anushree.mathur@linux.ibm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261119062951.83498-1-anushree.mathur@linux.ibm.com> References: <20261030131025.32219-1-anushree.mathur@linux.ibm.com> <20261119062951.83498-1-anushree.mathur@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-GUID: VJOJL-HOXrP7MLmi98FZ_u9PtL8Evmz0 X-Authority-Analysis: v=2.4 cv=e8uT2qp/ c=1 sm=1 tr=0 ts=6afe9781 cx=c_pps a=aDMHemPKRhS1OARIsFnwRA==:117 a=aDMHemPKRhS1OARIsFnwRA==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=uAbxVGIbfxUO_5tXvNgY:22 a=NEAV23lmAAAA:8 a=VnNF1IyMAAAA:8 a=sa340zWXXxNFbS3KqbkA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTE5MDAyNSBTYWx0ZWRfX5gWQzayxP27j /0Zb1+GhlOmJdEGx6bkSbpQEP4Aq0hJ5QXlSSRMwvYT7SQzWSR3rrlK2/3spdOptjorb3xqKlRZ yLeMEfUN3Jii+lJkCaDb03ArfdVsmC0= X-Proofpoint-ORIG-GUID: yANXytZn0J0xEuJ8knALzAf2RpZBzM66 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTE5MDAyNSBTYWx0ZWRfX8/zJFxRqFl9m +BisSrA5r/okrN9uln8dEbvsyh5xrNj7UNVrY9vHHyINszhn/8t+oSHgmhgbRuXk2m4NbPksbVL REv+uDRbz1d/V9IFFUQAnqJrWJQ7M/QBq1Df8M7wIjJaSMP5p5y4aR8L8TuZCOeWKFsCIuwCW2v Efq8l1tPs5rvO29VrZnVQo/dovrs+XxRTqMEks4xCuMSJYBWtGH9vMlmS+NboNqKiQfFCpQguQQ 4DgzGDFdEykGbGRBxB7VOlx036LnnMdnXoQZNc75K4Suys9odjfpPiSbv6ns6Uj8kAsHVATSpLX fhhXFLMa2xRPmu5Y6hwUkROvc4Bovkgd29YXZoYlrseWvaYuKu+oF7ZwauXY3+QMBR/ew6Dzg/K dLRJP5HNzD4y2jatYvqkN0Q+E7vkZ6E9DsMKQhhibHRpPMeIa2gQg2XA5YTB9i/PBbmucd0IvtN 0z4F5o9WpfLk6p7HIPQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-19_01,2026-11-16_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 suspectscore=0 phishscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 bulkscore=0 malwarescore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611190025 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=148.163.156.1; envelope-from=anushree.mathur@linux.ibm.com; helo=mx0a-001b2d01.pphosted.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @ibm.com) X-ZM-MESSAGEID: 1795069899183158500 Add a functional test that exercises DLPAR (Dynamic Logical Partitioning) CPU hotplug and unplug on the pseries machine type. The pseries machine supports adding and removing CPU cores at runtime via RTAS calls made by the guest. This test boots a minimal Linux kernel with a single core (-smp 2,threads=3D2,cores=3D1,maxcpus=3D4), then uses QMP device_add to attach a second core, verifies the guest sees it via /sys/devices/system/cpu/online, and then removes it again. The CPU driver name is detected dynamically via query-hotpluggable-cpus so the test remains correct when the default pseries CPU changes in a future QEMU release (e.g. power10 -> power11). Two variants are provided: - test_pseries_cpu_hotplug_tcg: runs under TCG on any host arch. - test_pseries_cpu_hotplug_kvm: runs under KVM on ppc64le hosts with kvm-hv loaded; skipped automatically elsewhere. An explicit /proc/modules check for kvm_hv is added because on ppc64le the base kvm module can create /dev/kvm without kvm-hv, which would cause the test to error rather than skip. x-vof=3Don is intentionally NOT used: VOF skips the SLOF firmware path that sets up the RTAS event interrupt, causing CPU hotplug events to be silently dropped by the guest kernel. Signed-off-by: Anushree Mathur --- v2: assets now from raphael502/qemu-ppc-boot instead of legoater/qemu-ppc-boot (same files, same sha256); wrapped long URL lines for checkpatch. tests/functional/ppc64/meson.build | 2 + tests/functional/ppc64/test_hotplug_cpu.py | 185 +++++++++++++++++++++ 2 files changed, 187 insertions(+) create mode 100755 tests/functional/ppc64/test_hotplug_cpu.py diff --git a/tests/functional/ppc64/meson.build b/tests/functional/ppc64/me= son.build index cb3c745624..45468087cb 100644 --- a/tests/functional/ppc64/meson.build +++ b/tests/functional/ppc64/meson.build @@ -2,6 +2,7 @@ =20 test_ppc64_timeouts =3D { 'fadump' : 480, + 'hotplug_cpu' : 480, 'hv' : 1000, 'mac99' : 120, 'openbsd' : 240, @@ -19,6 +20,7 @@ tests_ppc64_system_quick =3D [ tests_ppc64_system_thorough =3D [ 'e500', 'fadump', + 'hotplug_cpu', 'hv', 'mac99', 'openbsd', diff --git a/tests/functional/ppc64/test_hotplug_cpu.py b/tests/functional/= ppc64/test_hotplug_cpu.py new file mode 100755 index 0000000000..bd01bc2022 --- /dev/null +++ b/tests/functional/ppc64/test_hotplug_cpu.py @@ -0,0 +1,185 @@ +#!/usr/bin/env python3 +# Copyright (c) 2025 IBM Corporation +# +# SPDX-License-Identifier: GPL-2.0-or-later + +import platform + +from qemu_test import LinuxKernelTest, Asset +from qemu_test import exec_command_and_wait_for_pattern + + +class PseriesCpuHotplug(LinuxKernelTest): + """ + Test DLPAR CPU hotplug/unplug on the pseries machine type. + + The pseries machine implements the PAPR CPU hotplug protocol: the + hypervisor presents Dynamic Reconfiguration Connectors (DRCs) to + the guest, and the guest uses RTAS calls to accept or reject CPUs + that are offered or withdrawn. + + Topology used: -smp 2,threads=3D2,cores=3D1,maxcpus=3D4 =E2=80=94 1 ac= tive core + (cpu0+cpu1 online), max 2 cores. Hot-add core-id=3D2 =E2=86=92 online= goes + 0-3; hot-remove =E2=86=92 back to 0-1. Verified via /sys/.../cpu/onli= ne. + + Two variants are provided: + * test_pseries_cpu_hotplug_tcg =E2=80=94 uses TCG, runs on any host = arch. + * test_pseries_cpu_hotplug_kvm =E2=80=94 uses KVM, requires a ppc64l= e host + with kvm-hv loaded; skipped automatically on other hosts. + """ + + timeout =3D 480 + + # Buildroot image built for pseries (ppc64le little-endian paravirtual= ). + ASSET_KERNEL =3D Asset( + ('https://github.com/raphael502/qemu-ppc-boot/raw/refs/heads/main/' + 'buildroot/qemu_ppc64le_pseries-2023.11-8-gdcd9f0f6eb-20240104/' + 'vmlinux'), + 'fc20d5820ad83ed514ac5f88af7e2692d47ab7f36dab290cdb137d05b98502f5') + + ASSET_ROOTFS =3D Asset( + ('https://github.com/raphael502/qemu-ppc-boot/raw/refs/heads/main/' + 'buildroot/qemu_ppc64le_pseries-2023.11-8-gdcd9f0f6eb-20240104/' + 'rootfs.ext2'), + '6fd31e2300e9921d1192aa5c997760fc8bc40a18513cc466c56902f72d61fd23') + + def _boot_pseries(self, accel): + """ + Boot pseries with 1 core present and room for a second core. + + -smp 2,threads=3D2,cores=3D1,maxcpus=3D4 gives us: + * 1 active core =E2=86=92 cpu0 + cpu1 (2 SMT threads) + * 1 spare core slot that can be filled by device_add + + accel must be 'tcg' or 'kvm'. + """ + kernel_path =3D self.ASSET_KERNEL.fetch() + rootfs_path =3D self.ASSET_ROOTFS.fetch() + + self.set_machine('pseries') + # Do NOT use x-vof=3Don here =E2=80=94 VOF skips the SLOF firmware= path that + # sets up the RTAS event interrupt (epow/check-exception). Without + # SLOF, the guest kernel's pseries_hp_wq workqueue is never trigge= red + # and CPU hotplug RTAS events are silently dropped. + if accel =3D=3D 'tcg': + self.vm.add_args('-accel', 'tcg,thread=3Dmulti') + else: + self.vm.add_args('-accel', 'kvm') + self.vm.add_args('-smp', '2,threads=3D2,cores=3D1,maxcpus=3D4') + self.vm.add_args('-m', '512M') + self.vm.set_console() + self.vm.add_args('-drive', + f'file=3D{rootfs_path},if=3Dscsi,index=3D0,format= =3Draw') + self.vm.add_args( + '-kernel', kernel_path, + '-append', 'root=3D/dev/sda console=3Dhvc0 rootwait printk.tim= e=3D0', + ) + self.vm.launch() + self.wait_for_console_pattern('buildroot login:') + exec_command_and_wait_for_pattern(self, 'root', '#') + + def _get_hotplug_cpu_driver(self): + """ + Return the spapr-cpu-core driver name for an empty hotplug slot. + + query-hotpluggable-cpus lists all possible CPU slots; entries + without a 'qom-path' key are currently empty. The 'type' field + of any empty slot gives the driver name to pass to device_add. + This avoids hard-coding a CPU version string (e.g. + 'power11_v2.0-spapr-cpu-core') that would break when the default + pseries CPU changes in a future QEMU release. + """ + cpus =3D self.vm.cmd('query-hotpluggable-cpus') + for entry in cpus: + if 'qom-path' not in entry: + return entry['type'] + self.fail('No empty hotpluggable CPU slot found') + + def _do_cpu_hotplug(self): + """ + Shared hotplug/unplug logic, called after the guest has booted. + + Confirms cpu0+cpu1 are online, hot-adds a second core (cpu2+cpu3), + verifies they come online, hot-removes the core, and verifies they + go offline. Finishes with a clean guest poweroff. + """ + # Confirm initial state: cpu0 and cpu1 online, cpu2 offline/absent. + # Use /sys/devices/system/cpu/online which lists only truly online + # CPUs =E2=80=94 sysfs cpu dirs exist for possible CPUs too so ls = is wrong. + exec_command_and_wait_for_pattern( + self, + 'cat /sys/devices/system/cpu/online', + '0-1', + ) + + # Detect the correct driver for the empty hotplug slot dynamically + # so the test works regardless of which CPU version pseries defaul= ts + # to (power10, power11, etc.). + driver =3D self._get_hotplug_cpu_driver() + + # Hot-add core at core-id=3D2 (supplies threads cpu2 and cpu3 in S= MT-2). + # With threads=3D2 the available hotplug slot is core-id=3D2. + self.vm.cmd( + 'device_add', + driver=3Ddriver, + id=3D'hotcpu1', + **{'core-id': 2}, + ) + + # Poll until cpu2+cpu3 are online. The sentinel is built using a + # shell variable (echo hotplug_cpu_$R) so the full string + # 'hotplug_cpu_done' never appears in the command text. This avoi= ds + # a false match on the shell's echo of the typed command, which + # exec_command_and_wait_for_pattern scans before any output arrive= s. + exec_command_and_wait_for_pattern( + self, + 'until [ "$(cat /sys/devices/system/cpu/online)" =3D "0-3" ];' + ' do sleep 0.5; done; R=3Ddone; echo hotplug_cpu_$R', + 'hotplug_cpu_done', + ) + + # Hot-remove the core. + self.vm.cmd('device_del', id=3D'hotcpu1') + + # Wait until the kernel acknowledges the removal. + exec_command_and_wait_for_pattern( + self, + 'until [ "$(cat /sys/devices/system/cpu/online)" =3D "0-1" ];' + ' do sleep 0.2; done; R=3Ddone; echo unplug_cpu_$R', + 'unplug_cpu_done', + ) + + exec_command_and_wait_for_pattern(self, 'poweroff', '#') + self.vm.wait() + + def test_pseries_cpu_hotplug_tcg(self): + """Hot-add then hot-remove a CPU core on pseries using TCG.""" + self.require_accelerator('tcg') + self._boot_pseries('tcg') + self._do_cpu_hotplug() + + def test_pseries_cpu_hotplug_kvm(self): + """Hot-add then hot-remove a CPU core on pseries using KVM. + + Requires a ppc64le host with kvm-hv loaded; skipped automatically + on other hosts. + """ + self.require_accelerator('kvm') + # On ppc64le the base kvm module can be loaded (and /dev/kvm creat= ed) + # without kvm-hv, so checking /dev/kvm alone is not sufficient. + # Verify that kvm_hv is actually present in /proc/modules. + # This check is ppc64-specific; other arches (x86, arm, ...) use + # different KVM modules and rely solely on /dev/kvm. + if platform.machine() in ('ppc64le', 'ppc64'): + try: + with open('/proc/modules', encoding=3D'utf-8') as f: + if not any(line.split()[0] =3D=3D 'kvm_hv' for line in= f): + self.skipTest('kvm-hv module is not loaded') + except OSError: + pass + self._boot_pseries('kvm') + self._do_cpu_hotplug() + + +if __name__ =3D=3D '__main__': + PseriesCpuHotplug.main() --=20 2.55.0 From nobody Mon Nov 23 04:26:17 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1795069897; cv=none; d=zohomail.com; s=zohoarc; b=B1dUO5RU5+//vUgP23MOTBWXFz8sTF6h4peSO78ZBSdkyjcMk01m96xdcB+V391WcBK0bgJIoRbEJwNzfUOMR80o0Bfxk7psNB06kskc5Za/LuX/KJbp4xaHMMg8eab+59uA6BC5B+QEDue/EJ76wOGsXmaqJrcU0cYjdq/Vy+4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795069897; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Ome7GrWPFjmkhpK2E0dYx3KMEx0gnR50d7CJNFY1CRs=; b=Zgmov3Jtr5hJ0sjx59xri98hrhYFJSgzfPSNRsgLL3WobDqWYcgKIWgTeWNMtNRJahr0YORwiC1Tv0upruH+TWLm3ZeGHMTWS9gZiFRBi5jw0BVkUuVim4WtB3AUkfCZqHbZFfB0nFovEGmbcFsoa+kIGM78P+Sxh3Mh39prRfU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795069897190144.5894997204549; Wed, 18 Nov 2026 22:31:37 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xTvfZ-0004Sr-D9; Thu, 19 Nov 2026 01:30:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xTvfG-0004L6-BI; Thu, 19 Nov 2026 01:30:37 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xTvfE-0005tT-5p; Thu, 19 Nov 2026 01:30:34 -0500 Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AJ4jHuW3324077; Thu, 19 Nov 2026 06:30:30 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4j105nf090-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 19 Nov 2026 06:30:29 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 6AJ4rN8X063061; Thu, 19 Nov 2026 06:30:28 GMT Received: from smtprelay06.dal12v.mail.ibm.com ([172.16.1.8]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4j1hd6tkep-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Nov 2026 06:30:28 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (smtpav06.dal12v.mail.ibm.com [10.241.53.105]) by smtprelay06.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 6AJ6URNu24052324 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Nov 2026 06:30:27 GMT Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B7B395805D; Thu, 19 Nov 2026 06:30:27 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DEA1B58043; Thu, 19 Nov 2026 06:30:22 +0000 (GMT) Received: from localhost.localdomain (unknown [9.124.221.175]) by smtpav06.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 19 Nov 2026 06:30:22 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=Ome7GrWPFjmkhpK2E 0dYx3KMEx0gnR50d7CJNFY1CRs=; b=LFGTSxe/8vhL4q3RYdUeHxsylWUM7ccCY sTkY6Zncf+EkeRdBe+I52znZGzdA4jJID3IY32Kf9rI+hqPU37ADzClT8/eNmHjx 9JuA6YcPgMgHXPlUQM5mG7jOw3AKtY7/xyPLzMQCmtm7uPyre33iP2N2wRxpLD2x XQlVQ1nguuZx6LwQeU+VE2nex6V1SDj4cjWwZRrkshYJABcad4xKklK/w/tFeVMD n2+WEWnR8+59/kQqq2bxpTMFuDUoHuHND2Jop/T59pAgH3w6Bf5KmO0w0yFae9Sq e+JTMBRMaa3aGVqnIa7ZnDQSY4EDXPrg2xYvcBlOCFqEi8uU7UTfg== From: Anushree Mathur To: Harsh Prateek Bora , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Nicholas Piggin , qemu-devel@nongnu.org, qemu-ppc@nongnu.org Cc: Anushree Mathur , Thomas Huth , Amit Machhiwal , Miles Glenn , Aditya Gupta , misanjum@linux.ibm.com, Chinmay Rath , Utkarsh Verma Subject: [PATCH v2 2/4] tests/functional/ppc64: add pseries security caps test Date: Thu, 19 Nov 2026 11:59:48 +0530 Message-ID: <20261119062951.83498-3-anushree.mathur@linux.ibm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261119062951.83498-1-anushree.mathur@linux.ibm.com> References: <20261030131025.32219-1-anushree.mathur@linux.ibm.com> <20261119062951.83498-1-anushree.mathur@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTE5MDAyNSBTYWx0ZWRfX5ACXwqUFcz+a vRJT9UAH86Erf3GrAwWqCWEJUrntuLI/5kKhk/HJKmTmFmiCPpru+u2k7fAMLM3rue1iN6+TjJr qUh2omrM/Ss10xLOCmq0/V0MfECy4J+TQvKqxXpM1oaV8pOhbJicrHSAYaQrkg8iyqYEa5vLCYZ 6U4RvpYXcNSSKGkGZstcLVAPrec70BhwibKY7nVrB769bD2KRUbXqxPnJg0DQLqaCIyNZ1iOdUA E/Ui57jOwOdDnPMCDkNsKiF6MzaZOayeQOhX+HeRmDFidtUQ5paLNu54D0onPr1k732zkxK4vc5 MF01yLqAFWWpqXx75l9AnQvD+r/M1kebB3rlhJ8wqAK85BZDDOOjn51cBytPLQLusYOKmFUM2jQ ghPUDVzr5cWIo2iSYJs6OcN3R6DaX+7pnWJphFXNUEw2xUKlGJZadmyxh3UdXnzob1FByFQd2Wo /Otx898a2Belftgqj7A== X-Authority-Analysis: v=2.4 cv=HN9WhYtv c=1 sm=1 tr=0 ts=6afe9786 cx=c_pps a=GFwsV6G8L6GxiO2Y/PsHdQ==:117 a=GFwsV6G8L6GxiO2Y/PsHdQ==:17 a=zJRp6_cAMcgA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=iQ6ETzBq9ecOQQE5vZCe:22 a=VnNF1IyMAAAA:8 a=ap8TLsdQcWgLwmS6zZkA:9 X-Proofpoint-GUID: s3zgFI06cKxK6oK-xjsaZiGbygQhSLQ- X-Proofpoint-ORIG-GUID: HwU-VJFt0ZIC9vC7aJ7LwHGauyAEgx38 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTE5MDAyNSBTYWx0ZWRfX4fQbXXajBkkJ gduCH4tielrolrzLvfmbLclAEGXjIjuM78NEzfXsInMRuwM79a+B6088viFKyzWoaWwLgYeMfQ6 FtfAfFMKi/MFkjg4gfHDZVaRsJjReD4= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-19_01,2026-11-16_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 impostorscore=0 suspectscore=0 malwarescore=0 adultscore=0 phishscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611190025 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=148.163.156.1; envelope-from=anushree.mathur@linux.ibm.com; helo=mx0a-001b2d01.pphosted.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @ibm.com) X-ZM-MESSAGEID: 1795069899186158500 Content-Type: text/plain; charset="utf-8" Add a quick functional test (no Linux boot required) that checks that the pseries machine type accepts its security capability options and that backward-compatible versioned machine types can be instantiated, using the QMP interface. Each test starts QEMU with -S (halted) so no firmware or kernel is needed. The tests cover: * test_pseries_in_query_machines: pseries appears in query-machines and is marked is-default=3Dtrue. * test_pseries_security_caps_override: cap-cfpc, cap-sbbc, cap-ibs and cap-ccf-assist overrides are accepted and the machine starts. * test_pseries_nested_hv_cap: cap-nested-hv=3Don is accepted. * test_pseries_compat_7_2/9_2/10_0: versioned compat machines can be instantiated and are not marked is-current. * test_pseries_cap_hpt_max_page_size: cap-hpt-max-page-size is reachable via the QOM tree at /machine. All tests complete in under 5 seconds each and are registered in the tests_ppc64_system_quick list. Signed-off-by: Anushree Mathur --- v2: reworded the commit message to say what is actually checked, fixed docstrings that did not match the code and dropped the skipped query-cpu-model-expansion placeholder test. tests/functional/ppc64/meson.build | 1 + tests/functional/ppc64/test_pseries_caps.py | 162 ++++++++++++++++++++ 2 files changed, 163 insertions(+) create mode 100755 tests/functional/ppc64/test_pseries_caps.py diff --git a/tests/functional/ppc64/meson.build b/tests/functional/ppc64/me= son.build index 45468087cb..d91209f041 100644 --- a/tests/functional/ppc64/meson.build +++ b/tests/functional/ppc64/meson.build @@ -14,6 +14,7 @@ test_ppc64_timeouts =3D { =20 tests_ppc64_system_quick =3D [ 'migration', + 'pseries_caps', 'vmstate', ] =20 diff --git a/tests/functional/ppc64/test_pseries_caps.py b/tests/functional= /ppc64/test_pseries_caps.py new file mode 100755 index 0000000000..9ef3f48bb1 --- /dev/null +++ b/tests/functional/ppc64/test_pseries_caps.py @@ -0,0 +1,162 @@ +#!/usr/bin/env python3 +# Copyright (c) 2025 IBM Corporation +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import QemuSystemTest + + +class PseriesCapsTest(QemuSystemTest): + """ + Quick (no-boot) tests for pseries machine capabilities. + + Each test starts QEMU with -S (halted) so no firmware or kernel is + needed. The tests exercise the QMP interface to verify that: + + * The machine type is visible in 'query-machines' output. + * Known security capability properties (cap-cfpc, cap-sbbc, + cap-ibs, cap-ccf-assist, cap-nested-hv) are accepted. + * Versioned compat machines (pseries-7.2, pseries-9.2 and + pseries-10.0) can be instantiated and are not marked + is-current. + * cap-hpt-max-page-size is reachable via the QOM tree. + """ + + timeout =3D 30 + + # ------------------------------------------------------------------ # + # Helpers + # ------------------------------------------------------------------ # + + def _launch_stopped(self, machine=3D'pseries', extra_args=3DNone): + """Launch QEMU paused (-S) for the named machine and return.""" + self.set_machine(machine) + self.vm.add_args('-S', '-nodefaults') + if extra_args: + self.vm.add_args(*extra_args) + self.vm.launch() + + def _query_machine_info(self, name): + """Return the entry from query-machines that matches *name* or ali= as.""" + machines =3D self.vm.cmd('query-machines') + for m in machines: + if m['name'] =3D=3D name or m.get('alias') =3D=3D name: + return m + return None + + # ------------------------------------------------------------------ # + # Test: basic pseries machine is visible in query-machines + # ------------------------------------------------------------------ # + + def test_pseries_in_query_machines(self): + """pseries (latest) must appear in query-machines output.""" + self._launch_stopped('pseries') + info =3D self._query_machine_info('pseries') + self.assertIsNotNone(info, + 'pseries not found in query-machines output') + # The default/latest versioned machine carries is-default=3DTrue. + self.assertTrue( + info.get('is-default', False), + 'pseries alias should be marked is-default=3Dtrue', + ) + + # ------------------------------------------------------------------ # + # Test: security cap overrides are accepted without error + # ------------------------------------------------------------------ # + + def test_pseries_security_caps_override(self): + """ + Verify pseries accepts all well-known security cap overrides. + + These are the options used by the KVM nested-HV path in + test_hv.py. We only check that QEMU starts cleanly (no launch + exception); the actual cap values are enforced by separate + migration / capability tests. + """ + caps =3D ( + 'cap-cfpc=3Dbroken,' + 'cap-sbbc=3Dbroken,' + 'cap-ibs=3Dbroken,' + 'cap-ccf-assist=3Doff' + ) + self._launch_stopped( + 'pseries', + extra_args=3D['-machine', f'pseries,{caps}'], + ) + # If we get here the machine launched without errors. + machines =3D self.vm.cmd('query-machines') + aliases =3D [m.get('alias') for m in machines] + self.assertIn('pseries', aliases) + + # ------------------------------------------------------------------ # + # Test: nested-HV cap is accepted + # ------------------------------------------------------------------ # + + def test_pseries_nested_hv_cap(self): + """pseries must accept cap-nested-hv=3Don without raising an error= .""" + self._launch_stopped( + 'pseries', + extra_args=3D['-machine', 'pseries,x-vof=3Don,cap-nested-hv=3D= on'], + ) + machines =3D self.vm.cmd('query-machines') + aliases =3D [m.get('alias') for m in machines] + self.assertIn('pseries', aliases) + + # ------------------------------------------------------------------ # + # Test: versioned compat machines can be instantiated + # ------------------------------------------------------------------ # + + def _test_compat_machine(self, version_str): + """ + Helper: launch a versioned compat machine and verify that the + name appears in query-machines and that it is not marked + is-current (compat machines are never the latest version). + """ + self._launch_stopped(version_str) + info =3D self._query_machine_info(version_str) + self.assertIsNotNone( + info, + f'compat machine {version_str!r} not found in query-machines', + ) + # Compat (versioned) machines are not the latest, so is-current + # must be absent or False. + self.assertFalse( + info.get('is-current', False), + f'{version_str} should not be marked is-current=3Dtrue', + ) + + def test_pseries_compat_7_2(self): + """pseries-7.2 (vmstate reference version) can be instantiated.""" + self._test_compat_machine('pseries-7.2') + + def test_pseries_compat_9_2(self): + """pseries-9.2 can be instantiated.""" + self._test_compat_machine('pseries-9.2') + + def test_pseries_compat_10_0(self): + """pseries-10.0 can be instantiated.""" + self._test_compat_machine('pseries-10.0') + + # ------------------------------------------------------------------ # + # Test: cap-hpt-max-page-size is reachable via the QOM tree + # ------------------------------------------------------------------ # + + def test_pseries_cap_hpt_max_page_size(self): + """ + Verify that pseries exposes cap-hpt-max-page-size in its + machine properties (it is used by migration compat checks). + """ + self._launch_stopped('pseries') + # query-machine-props is not a real QMP command; we use the + # object model instead. + props =3D self.vm.cmd('qom-list', path=3D'/machine') + prop_names =3D [p['name'] for p in props] + # The property should be reachable via the QOM tree. + self.assertIn( + 'cap-hpt-max-page-size', prop_names, + 'pseries /machine must expose cap-hpt-max-page-size via QOM', + ) + + +if __name__ =3D=3D '__main__': + PseriesCapsTest.main() --=20 2.55.0 From nobody Mon Nov 23 04:26:17 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1795069919; cv=none; d=zohomail.com; s=zohoarc; b=E1sSrCOK6hDJX133WbehUwPys2RN5HJidOKX9Wa3Tt13MOSFyxVVX1LhrmfDdO87FuPHUJt9LiL756HxxC+2Oyauu/dOQg98ITaBTpR4z0H30aqyciw8M69VXbDJt0t5z+uc8hFqcScHGA22sV2T3wAwgPLx9Pvc5zr1Xjm7vQA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795069919; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Sy7ujPk9lFoLXnzAqjvU4A1ZTH7Am9KJcpoxgLgz9Ow=; b=VtYpjw/p2LJQpeglvsugMf5/QzvyzDkYUFM5GKe2ovNFiEYhdlDhjx3AgjcHuma1BJVUqEss7zQ/vBVDKmw2sYKHjYLbTB6/E0Jn1oTTVRxvA/YW1sHda7S2uUFJ5QcB5AlJwNh/80kX96n1F4a500eVWrB8lqI6ZfNqtXuLc3o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795069919051462.0053044011901; Wed, 18 Nov 2026 22:31:59 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xTvff-0004XQ-AN; Thu, 19 Nov 2026 01:30:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xTvfN-0004Oc-4e; Thu, 19 Nov 2026 01:30:49 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xTvfK-0006MO-QU; Thu, 19 Nov 2026 01:30:40 -0500 Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AJ4jJIa1532014; Thu, 19 Nov 2026 06:30:37 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4j105rpyvu-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 19 Nov 2026 06:30:36 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 6AJ4rkL2063179; Thu, 19 Nov 2026 06:30:35 GMT Received: from smtprelay03.dal12v.mail.ibm.com ([172.16.1.5]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4j1hd6tkf8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Nov 2026 06:30:35 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (smtpav06.dal12v.mail.ibm.com [10.241.53.105]) by smtprelay03.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 6AJ6UYbA23593578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Nov 2026 06:30:34 GMT Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 555835805F; Thu, 19 Nov 2026 06:30:34 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6145A58043; Thu, 19 Nov 2026 06:30:28 +0000 (GMT) Received: from localhost.localdomain (unknown [9.124.221.175]) by smtpav06.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 19 Nov 2026 06:30:28 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=Sy7ujPk9lFoLXnzAq jvU4A1ZTH7Am9KJcpoxgLgz9Ow=; b=mSxr4MjvmVRBnZ8vmLETnL11eJeLYi8pw OKEktp2lDvo45GrbdaotzwYxaw46FMLUev9gzbkdZGW7wnVqJOoE//rUaGMTOlKz yp0jwpHeg1Ei2ZDpsNtuIViMPdFmsYjSuU4SXS1fhm4LEoswbDRsCdafvHYEyhNK iSJM8ZKLAR/fLoC3gj0hrufH1ZBgGxmw+QDaVxMyAaNoGTzh4voxNvzyGBxD1bnr Xk0N4vZKpYFeF4zzJaE/HD4cnKfT4id9wfNDZuyIC8j2cMMf0SxE5infWo2RcuKo Qyvg3qYp/r9WkEArn4VEym4jYRPbUX3v0lJy28jzGIw4fi59Cowdg== From: Anushree Mathur To: Harsh Prateek Bora , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Nicholas Piggin , qemu-devel@nongnu.org, qemu-ppc@nongnu.org Cc: Anushree Mathur , Thomas Huth , Amit Machhiwal , Miles Glenn , Aditya Gupta , misanjum@linux.ibm.com, Chinmay Rath , Utkarsh Verma Subject: [PATCH v2 3/4] tests/functional/ppc64: add pseries virtio-blk hotplug test Date: Thu, 19 Nov 2026 11:59:49 +0530 Message-ID: <20261119062951.83498-4-anushree.mathur@linux.ibm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261119062951.83498-1-anushree.mathur@linux.ibm.com> References: <20261030131025.32219-1-anushree.mathur@linux.ibm.com> <20261119062951.83498-1-anushree.mathur@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-GUID: _1FUfqJc0ku3ukfC4_X5BkG3BPPTuKkz X-Authority-Analysis: v=2.4 cv=e8uT2qp/ c=1 sm=1 tr=0 ts=6afe978d cx=c_pps a=GFwsV6G8L6GxiO2Y/PsHdQ==:117 a=GFwsV6G8L6GxiO2Y/PsHdQ==:17 a=zJRp6_cAMcgA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=uAbxVGIbfxUO_5tXvNgY:22 a=NEAV23lmAAAA:8 a=VnNF1IyMAAAA:8 a=KdDu73rO8vtbKrPbEFUA:9 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTE5MDAyNSBTYWx0ZWRfX6SG7oRXwo4Bb pm64szCgRiDkNnzM7GrsM0igJ015/j7tvt8pk3Kp0gx3r01aJkYFcfMYbtyHsWOFz41bQVm+jTr yHmzPwGkx8K+0OjCQGla25Z+9c8MyLA= X-Proofpoint-ORIG-GUID: 9eDXeLkzoBTy-VrT4AgDbzmUAOevZOyB X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTE5MDAyNSBTYWx0ZWRfX0s922QhJ3AaQ OtzXcEhmOpzu13ypoHDU9m3CpCeG6i2mZefpmq06OT+DgKSeMuUloH52kWtmAMfV/tlsswOyrKn D6k2QSPVn6RQeMN0OqNy8/IHhuAo6k8zyJak1tLwlSie70u199pwu6aLkRtg+ESTqjTLOqTWDaM PDfRgTXMq64pLA5HZs4LqAI0uz+E+OboMG1nQoejcyBpJQj3q8gakFQs9rXplDaii2XnFZeqOjx /z0u1sgQmwrsikhjeX7yAsGQTgSOy2rieOt8119rgp6VDjN9tS74bVIB1rzMxJvWWBeovru7h8V 7IxRwAGqAjadiu3f4NM3dyQDEYcCZv2ge4F6pMvLtg9ZwqDTLIJJkdcSGjyTniWaYd3npvQUQxZ /472Cqggo91LxvaLILJiBs9i8IAQrSaFroAV6AtmwK5Zei9tDbU/S1ifYlATqZVMRymx5J7Ot5W yktn+m8fTT9z8VSdKLA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-19_01,2026-11-16_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 suspectscore=0 phishscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 bulkscore=0 malwarescore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611190025 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=148.163.156.1; envelope-from=anushree.mathur@linux.ibm.com; helo=mx0a-001b2d01.pphosted.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @ibm.com) X-ZM-MESSAGEID: 1795069921278158500 Content-Type: text/plain; charset="utf-8" Add a functional test that hot-plugs and hot-unplugs a virtio-blk-pci disk on the pseries machine. It runs with TCG, and also with KVM if KVM is enabled. On pseries a PCI device added through QMP is only enumerated by the guest once rtas_errd (ppc64-diag) handles the RTAS hotplug event and runs drmgr (powerpc-utils). Neither is in the buildroot image used by the other pseries tests, so the test uses rootfs-hotplug.ext2: the same image with those two tools added. The test boots with a second PHB (phb1) present so that the guest registers its slots, adds a null-co backend, hot-plugs virtio-blk-pci into phb1.0 and waits for /dev/vda, then unplugs it and waits for both the QMP DEVICE_DELETED event and /dev/vda to go away. The root drive is used with snapshot=3Don so the cached asset is not modified by the guest. Signed-off-by: Anushree Mathur --- v2: no longer RFC. I raised the patch adding rootfs-hotplug.ext2 to qemu-ppc-boot (https://github.com/raphael502/qemu-ppc-boot/pull/1) and it has been merged, so the asset URLs now point to that repository (sha256 unchanged). The vmlinux asset also points to qemu-ppc-boot, and the test file is now executable like the other functional tests. tests/functional/ppc64/meson.build | 2 + tests/functional/ppc64/test_hotplug_blk.py | 188 +++++++++++++++++++++ 2 files changed, 190 insertions(+) create mode 100755 tests/functional/ppc64/test_hotplug_blk.py diff --git a/tests/functional/ppc64/meson.build b/tests/functional/ppc64/me= son.build index d91209f041..f483ce4d76 100644 --- a/tests/functional/ppc64/meson.build +++ b/tests/functional/ppc64/meson.build @@ -2,6 +2,7 @@ =20 test_ppc64_timeouts =3D { 'fadump' : 480, + 'hotplug_blk' : 600, 'hotplug_cpu' : 480, 'hv' : 1000, 'mac99' : 120, @@ -21,6 +22,7 @@ tests_ppc64_system_quick =3D [ tests_ppc64_system_thorough =3D [ 'e500', 'fadump', + 'hotplug_blk', 'hotplug_cpu', 'hv', 'mac99', diff --git a/tests/functional/ppc64/test_hotplug_blk.py b/tests/functional/= ppc64/test_hotplug_blk.py new file mode 100755 index 0000000000..5740922977 --- /dev/null +++ b/tests/functional/ppc64/test_hotplug_blk.py @@ -0,0 +1,188 @@ +#!/usr/bin/env python3 +# +# Functional test that hot-plugs and hot-unplugs a virtio-blk-pci disk +# on the pseries machine type. +# +# Copyright (c) 2025 IBM Corporation +# +# SPDX-License-Identifier: GPL-2.0-or-later + +import platform + +from qemu_test import LinuxKernelTest, Asset +from qemu_test import exec_command_and_wait_for_pattern + + +class PseriesHotplugBlk(LinuxKernelTest): + """ + Test virtio-blk-pci hotplug/unplug on the pseries machine type. + + A pre-built rootfs image (based on the buildroot image used by + test_hotplug_cpu.py) is used as the guest OS. The image includes + rtas_errd from ppc64-diag, which is required on pseries to call the + ibm,configure-connector RTAS function that makes a QMP-hotplugged + PCI device visible to the kernel. + + ppc64-diag is not packaged in Alpine Linux, so the Alpine+apk + approach used by test_hv.py cannot be used here. Instead a + self-contained rootfs with rtas_errd and drmgr (from powerpc-utils) + already installed is referenced as an Asset, following the same + pattern as test_hotplug_cpu.py. + + The test is run with both TCG and KVM; the KVM variant needs a + ppc64 host with kvm-hv loaded and is skipped automatically otherwise. + + A second spapr-pci-host-bridge (phb1, index=3D1) is present at VM + launch so the guest kernel registers its PCI slots with rpaphp + during boot-time PCI probe. Runtime DLPAR hotplug of + virtio-blk-pci into phb1.0 then works via the rtas_errd path. + """ + + timeout =3D 600 + + ASSET_KERNEL =3D Asset( + ('https://github.com/raphael502/qemu-ppc-boot/raw/refs/heads/main/' + 'buildroot/qemu_ppc64le_pseries-2023.11-8-gdcd9f0f6eb-20240104/' + 'vmlinux'), + 'fc20d5820ad83ed514ac5f88af7e2692d47ab7f36dab290cdb137d05b98502f5') + + # Pre-built rootfs based on the buildroot pseries image above, with + # rtas_errd (from ppc64-diag) and drmgr (from powerpc-utils) added. + # rtas_errd is required to process RTAS hotplug events on pseries and + # it execs drmgr to configure the device; without them rpaphp + # registers the slots but the device is never enumerated by the kernel. + ASSET_ROOTFS =3D Asset( + ('https://github.com/raphael502/qemu-ppc-boot/raw/refs/heads/main/' + 'buildroot/qemu_ppc64le_pseries-2023.11-8-gdcd9f0f6eb-20240104/' + 'rootfs-hotplug.ext2'), + '01ab3421d313e7765176eb27193fdb5837281dc3c8484eed140de8a3e65908eb') + + def _boot_pseries(self, accel): + """Boot pseries with phb1 present and rtas_errd running. + + accel must be 'tcg' or 'kvm'. + """ + kernel_path =3D self.ASSET_KERNEL.fetch() + rootfs_path =3D self.ASSET_ROOTFS.fetch() + + self.set_machine('pseries') + if accel =3D=3D 'tcg': + self.vm.add_args('-accel', 'tcg,thread=3Dmulti') + else: + self.vm.add_args('-accel', 'kvm') + self.vm.add_args('-smp', '2', '-m', '512M') + # Second PHB present at boot so the guest kernel registers its + # slots with rpaphp. Required for runtime DLPAR hotplug of + # virtio-blk-pci into phb1.0. + self.vm.add_args('-device', 'spapr-pci-host-bridge,id=3Dphb1,index= =3D1') + # snapshot=3Don keeps the cached rootfs asset unmodified + self.vm.add_args( + '-drive', + f'file=3D{rootfs_path},if=3Dscsi,index=3D0,format=3Draw,snapsh= ot=3Don') + self.vm.add_args( + '-kernel', kernel_path, + '-append', 'root=3D/dev/sda console=3Dhvc0 rootwait printk.tim= e=3D0', + ) + self.vm.set_console() + self.vm.launch() + + self.wait_for_console_pattern('buildroot login:') + exec_command_and_wait_for_pattern(self, 'root', '#') + + # Start rtas_errd so that RTAS hotplug events are processed. + # rtas_errd daemonizes by default (no -d flag). Run mkdir and + # rtas_errd unconditionally then echo a sentinel so the pattern + # match never depends on their exit codes. + exec_command_and_wait_for_pattern( + self, + 'touch /var/log/platform; mkdir -p /var/log/dump;' + ' /usr/sbin/rtas_errd;' + ' echo rtas_errd_started', + 'rtas_errd_started', + ) + + def _do_blk_hotplug(self): + + # Confirm /dev/vda does not exist before hotplug. + exec_command_and_wait_for_pattern( + self, + 'test -b /dev/vda && echo present || echo absent', + 'absent', + ) + + # Add a null-co block backend (no image file needed). + self.vm.cmd( + 'blockdev-add', + **{ + 'driver': 'null-co', + 'size': 1073741824, + 'node-name': 'testdisk', + }, + ) + + # Hotplug virtio-blk-pci into phb1.0. The RTAS hotplug event + # (type 229) is delivered to the guest; rtas_errd calls + # ibm,configure-connector, the kernel enumerates the device and + # udev creates /dev/vda. + self.vm.cmd( + 'device_add', + driver=3D'virtio-blk-pci', + drive=3D'testdisk', + id=3D'hotblk0', + bus=3D'phb1.0', + addr=3D'0x0', + ) + + # Poll until /dev/vda appears. Use a shell variable sentinel so + # the string 'vda_present' never appears in the typed command, + # avoiding a false match on the echoed command text. + exec_command_and_wait_for_pattern( + self, + 'until test -b /dev/vda; do sleep 0.2; done' + '; R=3Dpresent; echo vda_$R', + 'vda_present', + ) + + # Unplug the device and wait for the QMP deletion event. + self.vm.cmd('device_del', id=3D'hotblk0') + self.vm.event_wait( + 'DEVICE_DELETED', + match=3D{'data': {'device': 'hotblk0'}}, + ) + + # Poll until /dev/vda disappears. + exec_command_and_wait_for_pattern( + self, + 'while test -b /dev/vda; do sleep 0.2; done' + '; R=3Dabsent; echo vda_$R', + 'vda_absent', + ) + + def test_pseries_hotplug_blk_tcg(self): + """Hotplug then unplug a virtio-blk-pci device on pseries (TCG).""" + self.require_accelerator('tcg') + self._boot_pseries('tcg') + self._do_blk_hotplug() + + def test_pseries_hotplug_blk_kvm(self): + """Hotplug then unplug a virtio-blk-pci device on pseries (KVM). + + Requires a ppc64 host with kvm-hv loaded; skipped automatically + on other hosts. + """ + self.require_accelerator('kvm') + # On ppc64 the base kvm module can be loaded (and /dev/kvm created) + # without kvm-hv, so checking /dev/kvm alone is not sufficient. + if platform.machine() in ('ppc64le', 'ppc64'): + try: + with open('/proc/modules', encoding=3D'utf-8') as f: + if not any(line.split()[0] =3D=3D 'kvm_hv' for line in= f): + self.skipTest('kvm-hv module is not loaded') + except OSError: + pass + self._boot_pseries('kvm') + self._do_blk_hotplug() + + +if __name__ =3D=3D '__main__': + PseriesHotplugBlk.main() --=20 2.55.0 From nobody Mon Nov 23 04:26:17 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1795069904; cv=none; d=zohomail.com; s=zohoarc; b=YNEsvllf6G6oKYZebcq0zzO4IUU5976acPkfe+ct8KuKke9MAKPbp9PFmHOPz1S5NyHaYgQU6c+mZOeZ46ZTsfOoVK4rFqBVg1VD387HjPV9NNJXPLyHO1WxtMMbOwOgRP4OZ54cPsqcpemww22hrwMwxR6jUaeR2EwXby8lILo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795069904; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=k6Hm7J0bQP0GpIaeKdykoSNDI3Q9s4GthdV0yo+x/UI=; b=PG5E96xUKvl2VgK9CdqUYdvVpf1c/Cv0vLOEjhaVhx1IPrds5fMkxpEZI/ThlW2rU4EsdAPWRTDmsZRFyXOIYYPyX53FZYqgr651hWL5QQ4UQNi+XgLW3CJSzQZ1AbZL8kk4r81XEUlQb8iT524N85GOYNXLgeif95JSaoHLnJ8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795069904498545.5271017153791; Wed, 18 Nov 2026 22:31:44 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xTvfe-0004VY-6q; Thu, 19 Nov 2026 01:30:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xTvfS-0004Oz-BH; Thu, 19 Nov 2026 01:30:49 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xTvfQ-0006mq-1y; Thu, 19 Nov 2026 01:30:45 -0500 Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AJ4iiXI3146444; Thu, 19 Nov 2026 06:30:42 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4j105wxsk2-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 19 Nov 2026 06:30:41 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 6AJ4rN8d063061; Thu, 19 Nov 2026 06:30:41 GMT Received: from smtprelay07.wdc07v.mail.ibm.com ([172.16.1.74]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4j1hd6tkfy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Nov 2026 06:30:41 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (smtpav06.dal12v.mail.ibm.com [10.241.53.105]) by smtprelay07.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 6AJ6UdcO26542672 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Nov 2026 06:30:40 GMT Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C752958061; Thu, 19 Nov 2026 06:30:39 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EDB0D5805D; Thu, 19 Nov 2026 06:30:34 +0000 (GMT) Received: from localhost.localdomain (unknown [9.124.221.175]) by smtpav06.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 19 Nov 2026 06:30:34 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=k6Hm7J0bQP0GpIaeK dykoSNDI3Q9s4GthdV0yo+x/UI=; b=okmZz8W6XZ4QIUtmR9BGHT63VphXEBli+ 1ae+IbBJW8HNPm4a2LYJkn6NHmePtG5JA00rIW99N2I1i64w4Jxn3saRYHGcwwQ7 +hQnAi0N2Gv2tneGLOvDhG9H+EJJrhumpgWkOUijIZOj3Y2XLxaSAM8z59HnjxXU qlWZYFhGkCowgR5oOXsqQs0J9xUUM9d9gOGTF4LydhxHpyZTv0iPua31xoddUVoT NuhtelwoCgNCunkbIJ0nr9CTz55WgRjOlxNOu8a4eIwITXqi49qheQ+RqKIPynON eAKOiTZ6xmFBbl7GdTfpTJFXcCcR7P2aGdwojKJqPwPaYvL/gJm3w== From: Anushree Mathur To: Harsh Prateek Bora , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Nicholas Piggin , qemu-devel@nongnu.org, qemu-ppc@nongnu.org Cc: Anushree Mathur , Thomas Huth , Amit Machhiwal , Miles Glenn , Aditya Gupta , misanjum@linux.ibm.com, Chinmay Rath , Utkarsh Verma Subject: [PATCH v2 4/4] MAINTAINERS: add pseries hotplug and caps functional tests Date: Thu, 19 Nov 2026 11:59:50 +0530 Message-ID: <20261119062951.83498-5-anushree.mathur@linux.ibm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261119062951.83498-1-anushree.mathur@linux.ibm.com> References: <20261030131025.32219-1-anushree.mathur@linux.ibm.com> <20261119062951.83498-1-anushree.mathur@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-ORIG-GUID: _JFZh3fGENcqaHLBmjrhZ4IHDTPs4qMK X-Proofpoint-GUID: IzSLNZ6b4nxQ2xYN3i5FuxGxNP4hJzOb X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTE5MDAyNSBTYWx0ZWRfXyVYzWSpuUxsc AFk1yQALZ5x+Fpt+Z5Y5NfY9rB80SxSOeq/YigDtbRYhvbiWLqVYn0EMvHy4NIqcvJ87ukZocaw V49GljRIOJ0q2/ligQV8q3lPl0opeDMVQfEiPTqrirn7zKLNSUnVJ1yDNY/bvXMfxl2zKPhFtm9 4U6PBHqQmyvD0uqd0zQ5XMY/9Q3eP1jNgKABp87YcTcUjOsk7Jf7S14tQufhv18TPuYdn4CGsZ3 Y9CbaCexyMnXn6JuaVJzpgzTE8e8SO9klbLZKdXLjVvFxjACBciqHVxv5zcoBj/55FttbbOqDW4 bjQEv0ueEirFsxtgQCTZ0qCXm8781LuI45uS2kZZqvifm16/rEYj9C3wUg0+cikgbwHJDnvltYu 3lq1sbfKwsKsyb+COLNyAn/mTf/xoOk0RQ5yyb5b1FHLj6rJWyHGgdE77scmqC/Oi3uH6Ge6v1+ 6/rt4k9c3Esbh3YVELA== X-Proofpoint-Spam-Info: AW1haW4tMjYxMTE5MDAyNSBTYWx0ZWRfXw3J3Dtz1gkqL b9sD4iPrUZ0dxUrjTyOF3mtNwmq2e78Xl1aOto9DnQikGfNCa3aJ8uNIoxI99+DByLYz2KKVCrM Dv9V/b+S/Cq1RKMouz8Cb2ucJdP57wk= X-Authority-Analysis: v=2.4 cv=K+m3jCWI c=1 sm=1 tr=0 ts=6afe9792 cx=c_pps a=GFwsV6G8L6GxiO2Y/PsHdQ==:117 a=GFwsV6G8L6GxiO2Y/PsHdQ==:17 a=zJRp6_cAMcgA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=Y2IxJ9c9Rs8Kov3niI8_:22 a=VnNF1IyMAAAA:8 a=pGLkceISAAAA:8 a=We0Iha30fGkoBXOV-LwA:9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-19_01,2026-11-16_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 clxscore=1015 adultscore=0 spamscore=0 priorityscore=1501 impostorscore=0 phishscore=0 lowpriorityscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611190025 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=148.163.158.5; envelope-from=anushree.mathur@linux.ibm.com; helo=mx0b-001b2d01.pphosted.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @ibm.com) X-ZM-MESSAGEID: 1795069905080158500 Content-Type: text/plain; charset="utf-8" Add entries for the three new pseries functional tests introduced in the preceding commits: - tests/functional/ppc64/test_hotplug_blk.py - tests/functional/ppc64/test_hotplug_cpu.py - tests/functional/ppc64/test_pseries_caps.py All of them belong under the sPAPR (pseries) section. Signed-off-by: Anushree Mathur --- v2: now a single patch covering all three tests (previously a separate patch plus an entry in the virtio-blk patch). MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 15942aaba3..8456c5fbec 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1705,6 +1705,9 @@ F: tests/qtest/libqos/rtas* F: tests/functional/ppc64/test_pseries.py F: tests/functional/ppc64/test_hv.py F: tests/functional/ppc64/test_tuxrun.py +F: tests/functional/ppc64/test_hotplug_blk.py +F: tests/functional/ppc64/test_hotplug_cpu.py +F: tests/functional/ppc64/test_pseries_caps.py =20 PowerNV (Non-Virtualized) M: Nicholas Piggin --=20 2.55.0