Re: [PATCH 2/6] KVM: selftests: Stash the host page size in a global in the guest_memfd test
From: David Hildenbrand
Date: Mon Sep 29 2025 - 05:17:37 EST
On 26.09.25 18:31, Sean Christopherson wrote:
Use a global variable to track the host page size in the guest_memfd test
so that the information doesn't need to be constantly passed around. The
state is purely a reflection of the underlying system, i.e. can't be set
by the test and is constant for a given invocation of the test, and thus
explicitly passing the host page size to individual testcases adds no
value, e.g. doesn't allow testing different combinations.
Making page_size a global will simplify an upcoming change to create a new
guest_memfd instance per testcase.
No functional change intended.
Reviewed-by: David Hildenbrand <david@xxxxxxxxxx>
--
Cheers
David / dhildenb