]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: selftests: Move page_align() to shared header
authorFuad Tabba <tabba@google.com>
Fri, 9 Jan 2026 08:22:17 +0000 (08:22 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 15 Jan 2026 13:39:53 +0000 (13:39 +0000)
commitde00d07321cf3f182762de2308c08062d5b824c0
tree871ad1a3aa337d185633cbb64525e6fc85376a54
parent582b39463f1c0774e0b3cb5be2118e8564b7941e
KVM: selftests: Move page_align() to shared header

To avoid code duplication, move page_align() to the shared `kvm_util.h`
header file. Rename it to vm_page_align(), to make it clear that the
alignment is done with respect to the guest's base page size.

No functional change intended.

Reviewed-by: Andrew Jones <andrew.jones@linux.dev>
Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260109082218.3236580-5-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
tools/testing/selftests/kvm/include/kvm_util.h
tools/testing/selftests/kvm/lib/arm64/processor.c
tools/testing/selftests/kvm/lib/riscv/processor.c