[PATCH v4 1/9] KVM: selftest: Create KVM selftest runner
Sean Christopherson
seanjc at google.com
Thu Jun 11 12:08:57 PDT 2026
On Wed, Jun 10, 2026, Ackerley Tng wrote:
> Vipin Sharma <vipinsh at google.com> writes:
> My (future) use case is that with hugepages, I want to run something
> like
>
> ./guest_memfd_test --order=0
> ./guest_memfd_test --order=9
> ./guest_memfd_test --order=18
>
> And 0, 9 and 18 are the supported HugeTLB orders on the machine being
> tested. I'd like to iterate over supported HugeTLB orders at runner
> runtime instead of at build time.
No. The right way to handle this is to define testcases for the "interesting"
sizes, and then rely on the test itself to SKIP if the size is unsupported. This
is no different than a test that requires EPT, or nested VMX, or nested SVM, etc.
More information about the kvm-riscv
mailing list