Re: [PATCH 02/15] KVM: selftests: Expose align() helpers to tests

2021-02-10 Thread Ben Gardon
On Wed, Feb 10, 2021 at 3:06 PM Sean Christopherson wrote: > > Refactor align() to work with non-pointers, add align_ptr() for use with > pointers, and expose both helpers so that they can be used by tests > and/or other utilities. The align() helper in particular will be used > to ensure gpa ali

[PATCH 02/15] KVM: selftests: Expose align() helpers to tests

2021-02-10 Thread Sean Christopherson
Refactor align() to work with non-pointers, add align_ptr() for use with pointers, and expose both helpers so that they can be used by tests and/or other utilities. The align() helper in particular will be used to ensure gpa alignment for hugepages. No functional change intended. Signed-off-by: