Re: [PATCH 02/20] KVM: selftests: Bump the minimum GPA for page tables to 0x200000
Claudio Imbrenda <[email protected]>
| Newsgroups | dev.linux.lists.loongarch,dev.linux.lists.kvmarm,org.infradead.lists.kvm-riscv,org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-riscv,org.kernel.vger.kvm,org.kernel.vger.linux-kernel |
|---|---|
| Organization | IBM |
| Message-ID | <20260828195848.2d14e9aa@p-imbrenda> |
On Wed, 26 Aug 2026 16:04:53 -0700 Sean Christopherson <[email protected]> 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 <[email protected]> > --- > 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.