diff options
author | Raghavendra Rao Ananta <rananta@google.com> | 2025-04-05 03:10:41 +0300 |
---|---|---|
committer | Oliver Upton <oliver.upton@linux.dev> | 2025-04-06 21:13:41 +0300 |
commit | d8d78398e550039295e0237eafb703e2d21f7d57 (patch) | |
tree | b900323028c3d1ba039640ef79686689a21a7e1e /rust/helpers/mutex.c | |
parent | 26fbdf36922711f285fd185ad644f0acdf15959f (diff) | |
download | linux-d8d78398e550039295e0237eafb703e2d21f7d57.tar.xz |
KVM: arm64: selftests: Introduce and use hardware-definition macros
The kvm selftest library for arm64 currently configures the hardware
fields, such as shift and mask in the page-table entries and registers,
directly with numbers. While it add comments at places, it's better to
rewrite them with appropriate macros to improve the readability and
reduce the risk of errors. Hence, introduce macros to define the
hardware fields and use them in the arm64 processor library.
Most of the definitions are primary copied from the Linux's header,
arch/arm64/include/asm/pgtable-hwdef.h.
No functional change intended.
Suggested-by: Oliver Upton <oupton@google.com>
Signed-off-by: Raghavendra Rao Ananta <rananta@google.com>
Link: https://lore.kernel.org/r/20250405001042.1470552-2-rananta@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions