diff options
| author | Sean Christopherson <[email protected]> | 2021-11-11 00:03:00 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2021-11-16 07:43:24 -0500 |
| commit | c071ff41e1502990a0902c7c3fcf72a462e46330 (patch) | |
| tree | c566a61b5aab8306099a88217f0245c5168048a5 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | 531ca3d6d518f520f67a71e270ac733901896d8f (diff) | |
KVM: selftests: Expose align() helpers to tests
Refactor align() to work with non-pointers and split into separate
helpers for aligning up vs. down. Add align_ptr_up() for use with
pointers. Expose all helpers so that they can be used by tests and/or
other utilities. The align_down() helper in particular will be used to
ensure gpa alignment for hugepages.
No functional change intended.
[Added sepearate up/down helpers and replaced open-coded alignment
bit math throughout the KVM selftests.]
Signed-off-by: Sean Christopherson <[email protected]>
Signed-off-by: David Matlack <[email protected]>
Reviewed-by: Ben Gardon <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions