Re: [PATCH 0/7] KVM: selftests: Fix maxnodes bugs and cleanup related code
From: Sean Christopherson
Date: Mon Sep 21 2026 - 10:20:26 EST
On Wed, 02 Sep 2026 17:16:18 -0700, Sean Christopherson wrote:
> This is a spin-off of Shivank's series[*] to fix "flaws" in KVM selftests
> handling of @maxnode in various sycalls. In quote because the flaw is that
> KVM selftests followed the docs, and the kernel has a longstanding, poorly
> documented off-by-one bug.
>
> Along the way, massage the xAPIC IPI test to automatically run its page
> migration testcases when possible, because that's the entire reason the
> test exists.
>
> [...]
Applied to kvm-x86 selftests, thanks!
[1/7] KVM: selftests: Account for kernel's off-by-one bug in NUMA node syscalls
https://github.com/kvm-x86/linux/commit/be3c6888e1ab
[2/7] KVM: selftests: Fix maxnode argument to migrate_pages() in xapic_ipi_test
https://github.com/kvm-x86/linux/commit/8883d2410c45
[3/7] KVM: selftests: use BITS_PER_TYPE() for NUMA masks
https://github.com/kvm-x86/linux/commit/d2dde5c387fc
[4/7] KVM: selftests: Compute node masks on-demand in xAPIC IPI test
https://github.com/kvm-x86/linux/commit/3a2a37d2d48e
[5/7] KVM: selftests: Add common helper to get mask+number of usable memory NUMA nodes
https://github.com/kvm-x86/linux/commit/0be096bbc9cc
[6/7] KVM: selftests: Automatically run xAPIC IPI migration test when possible
https://github.com/kvm-x86/linux/commit/92ed4d5c78fd
[7/7] KVM: selftests: Skip xAPIC IPI migration test when forced but unsupported
https://github.com/kvm-x86/linux/commit/d5aa06fbfec2
--
https://github.com/kvm-x86/linux/tree/next