Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA9F94AB1AA for ; Mon, 21 Sep 2026 14:07:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789999675; cv=none; b=fp6wcu3eKQBSMpSO3hQnooGM0Df4mBy7rrvOnOykVVlcr65UaSULSL5GbgEITQcQopO7mnE3hEfL/p05oZ+d0Bx2u5LtYP5sjVfUG66gdGA8BvtG7ZXxPHhy8owhadBTdToJCBZroxtBWjY3HAtsP7b0o5EfNtCn4esK6Fwrvro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789999675; c=relaxed/simple; bh=xL9CGxkzYt/J3kJ3zE8BdkE7Ib5J15yIahjNrznpznE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Hf/pj99xgdcXz6Wl2tvtcuS7vm1TaFAQ+KlJH2WY6jFoxGBk3cj/ZMHWZJsSS0ulAv+osWMZNzCsCncMt06NXDpecyS5jdUg7DLhvpee7fBijnpV30LuNNgK0YCqyQLxWXkcp/3WvoVh8s7tP4NkdTY7bOEHPrwkR+DkwC/+efU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=VOhTs9EY; arc=none smtp.client-ip=209.85.215.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="VOhTs9EY" Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-cbb92868263so2566209a12.2 for ; Mon, 21 Sep 2026 07:07:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1789999673; x=1790604473; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=GOYAH6R+ATW22r2VK1upIBbGsmi1bjog4cG/z3wfeFY=; b=VOhTs9EYv5RrQD7a7v4qNCPzZC5QdPAZCWf94EqGtSzhkxV5VnPrJg/EboApW7e6cq YL4OKfitgmP0DYpw/BYq5fZ21v+F+WcLZMR2MTeibM8QzKqQ3FzzFeGT87sQvXPwNQzm EPkzoRcbq40YNkiaoBSTYDERUNjVrEXbCq+53M76aa7P7ePSmGXpVfDueOxProZbuGzv 3ODscfEwPPiAVImPhYaAaQQRcZUe2A5kchTRN/VoOol5ZP4iC0RVusM0eKyW3C+UrU3p 4CyhjoDJ6LI+Lr/36PDXa19rVES1UpzNnns2u2jGGCVeuTMMKTQoGBVYcblSjhLyRttN 4yhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789999673; x=1790604473; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=GOYAH6R+ATW22r2VK1upIBbGsmi1bjog4cG/z3wfeFY=; b=CAQn90jzWM0tFnTiW5sr7DWCTxTlmOdjOjmGmCDyNZwpTeSMM71vIXqQJUQLGuHKYk YTMEHjj6fx2/u0M3tS57Ycfb0ahvkb4tlhFLJkCmPFNYDzFSFmsP7ADTulCJbk290kd+ d5fhelnY/MfnTxTqs7zSHK+oeTi0WIEkJKloj/SZ6BV+xp7xHcyuhve1NJV9cde/NeLB zQTIxAcUihqGPvKOjPqn1q6jxLWFdytDbbHGXT0L5paY7Cc0vZxyNDHMyoNpAHL8pxkq 9krkPXnQlTQT8V1rjHYmPVHYkxgk2Pfx+F+AFCANmAD2tRSPXe6LcbWRAtPI6Mqa4i3A iCwg== X-Forwarded-Encrypted: i=1; AKwUvBzAn0N4Gw+nv++0DS6zV4ihB+FdDX1BXsH9ZrjsJLFBVG4mBy1nme4AthZL406oGp7/NjI=@vger.kernel.org X-Gm-Message-State: AFuF++mlEORkQTkZJ+jbuFTRcrKPpnIUjoWu1JhoXZlfVyW6ydAfUzIg 5rjaApj3QxsaGnFfRN/+T3lfQ7xfUgs+URpIMwWkAuCDzwJs27O1wDvaKILtk0OqSFf/uFbOfkq 1HYdsvg== X-Received: from pgbfu4.prod.google.com ([2002:a05:6a02:4a84:b0:cc5:1d94:8e5]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a21:4688:b0:3dd:a196:3094 with SMTP id adf61e73a8af0-3dda1963396mr11496717637.68.1789999672947; Mon, 21 Sep 2026 07:07:52 -0700 (PDT) Date: Mon, 21 Sep 2026 07:05:44 -0700 In-Reply-To: <20260902164123.2546762-1-seanjc@google.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260902164123.2546762-1-seanjc@google.com> X-Mailer: git-send-email 2.55.0.1082.g2b9226bbc0-goog Message-ID: <178999944766.761024.7401957242293009313.b4-ty@google.com> Subject: Re: [PATCH v2 00/20] KVM: selftests: PPC pre-enabling From: Sean Christopherson To: Sean Christopherson , Marc Zyngier , Oliver Upton , Paolo Bonzini , Tianrui Zhao , Bibo Mao , Huacai Chen , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda Cc: Fuad Tabba , Joey Gouly , Steffen Eiden , Suzuki K Poulose , Zenghui Yu , Atish Patra , Alexandre Ghiti , David Hildenbrand , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, loongarch@lists.linux.dev, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Itaru Kitayama , Nicholas Piggin , Ritesh Harjani Content-Type: text/plain; charset="utf-8" On Wed, 02 Sep 2026 09:41:03 -0700, Sean Christopherson wrote: > This is a big pile of cleanups and refactoring to prepare for PPC support in > KVM selftests. PPC has paging modes that require multi-page page tables, and > those page tables need to be naturally aligned. The original proposal was to > plumb in an @align param to the page allocators[*], but I didn't love the idea > of adding another rarely used param to the allocators. > > v2: > - Collect tags. [Itaru, Bibo] > - Use 0x180000 as the min GPA for page table pages on LoongArch, instead of > changing every other arch to use 0x200000. [Sashiko, Bibo] > - Opportunistically move the vGIC LPI stress test's global "gpa_base" variable > into setup_memslot(). [Sashiko] > > [...] Applied to kvm-x86 selftests, thanks! [01/20] KVM: selftests: Use MEM_REGION_PT memslot instead of '0' for s390 regions/segments https://github.com/kvm-x86/linux/commit/73ac07325851 [02/20] KVM: selftests: Use the common minimum GPA for page tables on LoongArch https://github.com/kvm-x86/linux/commit/9886413e0466 [03/20] KVM: selftests: Use vm_alloc_page_table() to allocate LoongArch page tables https://github.com/kvm-x86/linux/commit/befd94805906 [04/20] KVM: selftests: Rename "num" param to "nr_pages" for physical page allocators https://github.com/kvm-x86/linux/commit/d220e33516fa [05/20] KVM: selftests: Use goto instead of do-while to retry finding unused physical pages https://github.com/kvm-x86/linux/commit/2c0555c51e7c [06/20] KVM: selftests: Extend page allocator to support naturally aligned allocations https://github.com/kvm-x86/linux/commit/2429ecf7ccd5 [07/20] KVM: selftests: Make the single-page allocator APIs static inline https://github.com/kvm-x86/linux/commit/54e83f729385 [08/20] KVM: selftests: Use the innermost page allocator API in the memslot perf test https://github.com/kvm-x86/linux/commit/b8d9e6ec747a [09/20] KVM: selftests: Use the innermost page allocator API in s390's IRQ routing test https://github.com/kvm-x86/linux/commit/9c0061d2e7cd [10/20] KVM: selftests: Add a wrapper API to allocate multiple page table pages https://github.com/kvm-x86/linux/commit/7f477ba0878e [11/20] KVM: selftests: Initialize vm->memslots[] with invalid memslots during creation https://github.com/kvm-x86/linux/commit/9e4e2281df12 [12/20] KVM: selftests: Add APIs to override memory region types with custom memslots https://github.com/kvm-x86/linux/commit/d69b3e714265 [13/20] KVM: selftests: Add TEST_EXTRA memory region type for "special" memslots https://github.com/kvm-x86/linux/commit/9f035aca8765 [14/20] KVM: selftests: Use TEST_EXTRA region in arm64's vGIC LPI stress test https://github.com/kvm-x86/linux/commit/5d81014d3868 [15/20] KVM: selftests: Use TEST_EXTRA region in x86's smaller MAXPHYADDR test https://github.com/kvm-x86/linux/commit/00c37bfc5b4e [16/20] KVM: selftests: Use TEST_EXTRA region in set memory region test https://github.com/kvm-x86/linux/commit/5ed16822bc45 [17/20] KVM: selftests: Take the memory region type, not memslot, in page allocators https://github.com/kvm-x86/linux/commit/36a062568ea8 [18/20] KVM: selftests: Use TEST_ASSERT(), not assert(), in vm_get_mem_region() https://github.com/kvm-x86/linux/commit/1856064afc9d [19/20] KVM: selftests: Automatically pick min_gpa for allocations based on region type https://github.com/kvm-x86/linux/commit/6c28a0d7cf12 [20/20] KVM: selftests: Add arch hook to force page tables to be naturally aligned https://github.com/kvm-x86/linux/commit/1e59e5a3bdbe -- https://github.com/kvm-x86/linux/tree/next