From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) (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 74719399889 for ; Fri, 28 Aug 2026 18:07:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787940458; cv=none; b=AMv/O2M3eDwadBQCT448iFlIMBgppdP6OBVWLYB4hWcpewqZceLDtDfJgangziB+TAv0ccoKxfJai7TlLnmIV9JoEGtZkPwjh10mRLLGxvIHo1+HJligOCwjm6ROqTMeV1Dz5v6w16CV/UDgGShWRWrY7jyi7jiuzrzfHWzuNtk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787940458; c=relaxed/simple; bh=c1tEVigf+FQrayaN3giFFn+kO+lE6WXq/YykkjI8cpQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=E/K6y5Tkskp2J6cf0oMl5H2l5P2601vYLvAEI5MwfCs3GiK55QlgNHgya2Zm/9MxrXOoraWNSKsxzOet9qtCV6ilsyP0qnJ41bR7+x8tcQuk/7GDGBUR4onwgafInO+mJNHXAFRj9Jcp1a1qcutjggXJiuRcCnMRTc3uUbIe0+E= 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=J6+vKQyC; arc=none smtp.client-ip=209.85.215.197 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="J6+vKQyC" Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-cbb467e56aaso1192222a12.1 for ; Fri, 28 Aug 2026 11:07:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1787940456; x=1788545256; 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=lD64MUyngIsCQv9tUBdkcgzvyMQxFZ53ZEBy5BtZu7g=; b=J6+vKQyCAzeTpFgZrh6n9oQiqB9N3nMFkma2DPsv+7avkPsAzKRd3h88EbYlTgprkk BJaoGWvD4ONLupzcEElnEVjWUDMp/SigKXyM60PT7cLarVr6QTBHexKhau9nYAoDrU1r orMPT4WXPWOrj6ExBObzILjq1N06ki3cmbmUiiSzMNGuNE0Imxp/0FCrZLXY6VLqk51n uthiFvUzw0L2nlCeDas7jwzv6IqWyVlZRPUEah6I4YU2+lQZDoNKL5GSLjuyB4pqOykC Xf1JPMsGtgD1mqDehIX/roQjbRr80ctkhuymYwuPxtjbsYYouZ1oXJxJqDWbUFVyOcfH FEpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787940456; x=1788545256; 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=lD64MUyngIsCQv9tUBdkcgzvyMQxFZ53ZEBy5BtZu7g=; b=Xb0ARWq2USs5aBzlF1sPW7Rz+D8yoKXGVw+6K0h5sFUsgy0CH+4eDVEVyM52dF9zLs SPesacY5tLuXGtEdTGzn26DpE40AL5oorJUFFN2tw1vCIyeKxXSZXVBMbHsmHp2MllqS Vf5jpTcvEjSEev0568QJUhA1oFd9xCdtjKVZIFa4WqFoCkVcKRL/iEcypcQThOWVvkSQ oCzfXqeFIfWzL7xSsLfOjMR0vfdHf5k31eSYfYyP1AwYICObwlUcQqMioG8KafoFTsCQ q/wPUz96gJu/YN685aV4uoLKNpp144iudOvaltbXeHANrqPZQh/DgOJW4qk4oGYnKILg Hmag== X-Forwarded-Encrypted: i=1; AHgh+RpS/Nn43GyzUINKtpSDAdhE5oXukmtH5uO8Wf0rKhfuH+LfWhL1eLOU3NMX92fGE1EncauQnYuPXtJSGN4=@vger.kernel.org X-Gm-Message-State: AFuF++kjwNkIXaZtilY/Dlp14tLn1HE+xYxGHiz6GYmBReQbYkf/4qZ0 sGkP7t+UOx7cqIGOBd7VmkkKVOTyvdASUDCCnsNB8plvumUbSgFKcsbagd3fkL83Vhr9i9c4k1K Okgy5wQ== X-Received: from pgtk26.prod.google.com ([2002:a65:68da:0:b0:cc1:4794:1471]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:160e:b0:3d0:e034:a26f with SMTP id adf61e73a8af0-3d2688bd551mr19120799637.17.1787940455451; Fri, 28 Aug 2026 11:07:35 -0700 (PDT) Date: Fri, 28 Aug 2026 11:07:34 -0700 In-Reply-To: <20260828195848.2d14e9aa@p-imbrenda> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260826230511.972824-1-seanjc@google.com> <20260826230511.972824-3-seanjc@google.com> <20260828195848.2d14e9aa@p-imbrenda> Message-ID: Subject: Re: [PATCH 02/20] KVM: selftests: Bump the minimum GPA for page tables to 0x200000 From: Sean Christopherson To: Claudio Imbrenda Cc: Marc Zyngier , Oliver Upton , Paolo Bonzini , Tianrui Zhao , Bibo Mao , Huacai Chen , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , 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, Nicholas Piggin , Ritesh Harjani Content-Type: text/plain; charset="us-ascii" On Fri, Aug 28, 2026, Claudio Imbrenda wrote: > On Wed, 26 Aug 2026 16:04:53 -0700 > Sean Christopherson wrote: > > > Bump selftests completely arbitrary minimum GPA for page tables from > > 0x180000 to 0x200000 (LoongArch's minimum), so that LoongArch can use > > vm_alloc_page_table() instead of open coding a rough equivalent. > > > > Signed-off-by: Sean Christopherson > > --- > > tools/testing/selftests/kvm/include/kvm_util.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/tools/testing/selftests/kvm/include/kvm_util.h b/tools/testing/selftests/kvm/include/kvm_util.h > > index 5a7a455b5387..70906a0d1003 100644 > > --- a/tools/testing/selftests/kvm/include/kvm_util.h > > +++ b/tools/testing/selftests/kvm/include/kvm_util.h > > @@ -175,7 +175,7 @@ static inline struct userspace_mem_region *vm_get_mem_region(struct kvm_vm *vm, > > > > /* Minimum allocated guest virtual and physical addresses */ > > #define KVM_UTIL_MIN_VADDR 0x2000 > > -#define KVM_GUEST_PAGE_TABLE_MIN_PADDR 0x180000 > > +#define KVM_GUEST_PAGE_TABLE_MIN_PADDR 0x200000 > > > > #define DEFAULT_GUEST_STACK_VADDR_MIN 0xab6000 > > #define DEFAULT_STACK_PGS 5 > > this breaks s390/cmma_test > > I tried a quick fix, but nope... I will need to actually invest some > time (i.e. next week) to understand why the quick fix is not enough, > and come up with a proper fix > > the good news is: it seems like cmma_test is the only test that is > negatively affected by this series. Is it this change specifically that's problematic? Because if so, you can probably just do nothing, because Sashiko (argh, just remembered that Sashiko doesn't Cc everyone) pointed out that this will likely break some arm64 tests as well[*]. The LoongArch folks confirmed that using KVM_GUEST_PAGE_TABLE_MIN_PADDR as-is should be a-ok, so my plan is to drop this patch and instead have LoongArch use KVM_GUEST_PAGE_TABLE_MIN_PADDR. I.e. make LoongArch match everyone else, instead of making everyone else match LoongArch. [*] https://lore.kernel.org/all/20260826232224.782021F000E9@smtp.kernel.org