From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF93339CCFA; Mon, 12 Oct 2026 03:51:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791777113; cv=none; b=SZeZiepXw/zv5Rmk576mbGON4We2UQ+mIaw0NL5v890OQrL6BXLPHinQm/apgKDQrS+v3IOqSMzQBpKMWOeIglf9k1L4vRbBcrglzXHRC8QpWKN/fIMsjFcDxA9ivem0ZzqYVrw/Qgi+vBxCV/wzLaibmB/G2GW2neoBcx+J6ig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791777113; c=relaxed/simple; bh=hdeLvYFZ6QgSNWLA5/5kBKBzTRPYU8nalvU+ICQ5vHU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lc9aP1E7xHGWO5GtYciJCRw8HNU+Bm5IprBY19vppyfEKiqCDLrqNLcP5bC8FbBwwz3XQX2CIx9m8qDI28+ywnNSUYu88fHfZI+TA9Nwopjt4wN3EY27YIfQP5tvnyL+DTNUgUGRnv1nyMuT38HB+P1oSRxL3rYmWTupGMaEBQE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=RquGCIGj; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="RquGCIGj" Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69C2EEDQ3070856; Mon, 12 Oct 2026 03:51:37 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=Fh+cmR tEbXcmwWD44V7PpRx5S2436EpwTjabRkFFgx8=; b=RquGCIGjKi8FgksoepE589 1JQmtcH6aeFKmnZCAUFreUSD9guyufUS4spo7Zc9uQWM71Bd9cViaXM7+ju2qIai IgIQ2YvRQXQRWcYA+o9OX+Fy1b5FqM7ZB372rs3nUrCuBbU3pZEhThZZoICTKYKP C0Kg+5bEX50USssK55JbT9JZn307IbNmDhtiOIuqkqsrSE/fmlbC4KZS7iDHqdvz NOZAFRC4JwQ8xEdd/kulvQ2dXzWw8EYsNGiOMmdlQoBsovBjZ/Fc+IyrNqiXf8ZT DrXqo8QP3Y0x5G7RNikxQ86J+bRLgi3YNJ2E9x7ywRNBWUNpZXy2W0lS9sKP3Irg == 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 4h7e1vxqm2-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 12 Oct 2026 03:51:36 +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 69C1o7Av598375; Mon, 12 Oct 2026 03:51:35 GMT Received: from smtprelay06.dal12v.mail.ibm.com ([172.16.1.8]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 4h82cybaud-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Oct 2026 03:51:35 +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 69C3pYCw54067562 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Oct 2026 03:51:35 GMT Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E40FF58055; Mon, 12 Oct 2026 03:51:34 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D9C8A58059; Mon, 12 Oct 2026 03:51:30 +0000 (GMT) Received: from [9.123.8.83] (unknown [9.123.8.83]) by smtpav06.dal12v.mail.ibm.com (Postfix) with ESMTP; Mon, 12 Oct 2026 03:51:30 +0000 (GMT) Message-ID: <94cd4203-1be8-4f8d-b015-0c02760e5770@linux.ibm.com> Date: Mon, 12 Oct 2026 09:21:28 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 0/8] KVM: selftests: add powerpc support To: "Ritesh Harjani (IBM)" , kvm@vger.kernel.org, Sean Christopherson Cc: Paolo Bonzini , linuxppc-dev@lists.ozlabs.org, Michael Ellerman , Christophe Leroy , Anushree Mathur , Venkat Rao Bagalkote , Harsh Prateek Bora , Shrikanth Hegde , linux-kernel@vger.kernel.org References: Content-Language: en-US From: Madhavan Srinivasan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDEyM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UID: 6L66dTfzpY_Xhq72Nqee6HcVU9AJ5lpm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-12_01,2026-10-09_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 spamscore=0 adultscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610120014 On 10/6/26 3:58 PM, Ritesh Harjani (IBM) wrote: > Patch v5 -> v7: > ================ > (Suggestions from Sean): > 1. Added kvm_is_ppc_pseries_lpar() helper in kvm_util.h to avoid sprinkling > multiple #ifdef __powerpc64__ checks. > 2. Enable all tests via TEST_GEN_PROGS_COMMON for powerpc > 3. Enable hardware_disable_test and skip when running on powerpc pseries LPAR > (nested). > 4. Re-arranged the fixes in appropriate order. > > This is based off v2 of Sean PPC pre-enablement series [1]. > [1]: https://lore.kernel.org/kvm/20260902164123.2546762-1-seanjc@google.com/ > > Patch v4 -> v5: > ============== > - Fixed the issues reported by Anushree while running on kvm on powervm > (nested). > - Fixed memslot_perf_test on powerpc. > > PATCH v3 -> PATCH v4: > ================== > - Rebased on top of Sean's new page allocator patch series v2 [1] > This allowed to drop and patch-2 since it will now come from Sean's > v2. > - Addressed review comments from Sean - squashed patches 6-10 in patch-1 of > this. > - Dropped patch-5 to print vcpu_id when KVM_CREATE_VCPU ioctl fails. > - Added additional patch-3 to this series to allow dirty_log_test to run on all > big-endian machines. > > [1]: https://lore.kernel.org/kvm/20260902164123.2546762-1-seanjc@google.com/ > [v3]: https://lore.kernel.org/linuxppc-dev/2d2c46be7f051c7f1c645afaec67f57067d37a81.1781093720.git.ritesh.list@gmail.com/ > > Testing updates: > ================ > I have done some fair amount of testing of the selftests both on real HW and > using various combinations on qemu (powernv+LE (default), pseries+cap-nested-hv, > pseries+cap-nested-papr, powernv+BE). There were few powerpc kvm kernel fixes > which were identified as part of this work. I will send those patches separately > as those anyway needs to go in separately. > > > ======================================================= > > Hi All, > > This series primarly adds KVM selftests support for powerpc (64-bit, BookS, > radix MMU). > > This patch series is originally Nick's work. I have mainly only rebased it on > the latest upstream tree. Since the rebase required few changes to all the four > patches (Patch 1-4), I have dropped the earlier Acked-by from Michael Ellerman. > > Since the last series was posted three years ago [1], I am resetting the version > to RFC. This rebase was done as part of a larger effort to improve the selftests > infrastructure for Linux on PowerPC tree. Thanks to Harsh and Maddy for their > help on this. > Sean/Paolo, hope you take this via your tree. Acked-by: Madhavan Srinivasan > Nicholas Piggin (1): > KVM: PPC: selftests: add support for powerpc > > Ritesh Harjani (IBM) (7): > KVM: selftests: Don't limit LE dirty-bitmap bitops to s390x > KVM: selftests: Move memslot_perf_test off the 256M ELF load address > KVM: selftests: Skip the max vCPU ID test when KVM_CAP_PPC_SMT is set > KVM: selftests: Add helper for checking if running on powerpc pseries LPAR > KVM: selftests: Skip kvm_create_max_vcpus on powerpc pseries LPAR > KVM: selftests: Only warn for idle-page checks on powerpc pseries LPAR > KVM: selftests: Skip hardware_disable_test on powerpc pseries LPAR > > MAINTAINERS | 2 + > tools/testing/selftests/kvm/Makefile | 2 +- > tools/testing/selftests/kvm/Makefile.kvm | 9 + > .../selftests/kvm/access_tracking_perf_test.c | 10 + > tools/testing/selftests/kvm/dirty_log_test.c | 12 +- > .../selftests/kvm/hardware_disable_test.c | 3 + > .../testing/selftests/kvm/include/kvm_util.h | 26 + > .../selftests/kvm/include/powerpc/hcall.h | 17 + > .../kvm/include/powerpc/kvm_util_arch.h | 22 + > .../selftests/kvm/include/powerpc/ppc_asm.h | 32 ++ > .../selftests/kvm/include/powerpc/processor.h | 39 ++ > .../selftests/kvm/include/powerpc/ucall.h | 21 + > .../selftests/kvm/kvm_create_max_vcpus.c | 14 +- > tools/testing/selftests/kvm/lib/guest_modes.c | 20 +- > tools/testing/selftests/kvm/lib/kvm_util.c | 8 + > .../selftests/kvm/lib/powerpc/handlers.S | 93 ++++ > .../testing/selftests/kvm/lib/powerpc/hcall.c | 45 ++ > .../selftests/kvm/lib/powerpc/processor.c | 512 ++++++++++++++++++ > .../testing/selftests/kvm/lib/powerpc/ucall.c | 22 + > .../testing/selftests/kvm/memslot_perf_test.c | 2 +- > 20 files changed, 898 insertions(+), 13 deletions(-) > create mode 100644 tools/testing/selftests/kvm/include/powerpc/hcall.h > create mode 100644 tools/testing/selftests/kvm/include/powerpc/kvm_util_arch.h > create mode 100644 tools/testing/selftests/kvm/include/powerpc/ppc_asm.h > create mode 100644 tools/testing/selftests/kvm/include/powerpc/processor.h > create mode 100644 tools/testing/selftests/kvm/include/powerpc/ucall.h > create mode 100644 tools/testing/selftests/kvm/lib/powerpc/handlers.S > create mode 100644 tools/testing/selftests/kvm/lib/powerpc/hcall.c > create mode 100644 tools/testing/selftests/kvm/lib/powerpc/processor.c > create mode 100644 tools/testing/selftests/kvm/lib/powerpc/ucall.c > > -- > 2.39.5 > >