diff options
author | Marc Zyngier <maz@kernel.org> | 2022-07-05 09:11:54 +0200 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-07-17 12:55:33 +0200 |
commit | 71c3c7753c722b8b10566dcdf1ff0a2eaf33a9c1 (patch) | |
tree | cd814ac5d512fe3fefc395a8de66967ef4dedab0 /arch/arm64/kvm/vgic | |
parent | KVM: arm64: vgic-v3: Make the userspace accessors use sysreg API (diff) | |
download | linux-71c3c7753c722b8b10566dcdf1ff0a2eaf33a9c1.tar.xz linux-71c3c7753c722b8b10566dcdf1ff0a2eaf33a9c1.zip |
KVM: arm64: vgic-v3: Convert userspace accessors over to FIELD_GET/FIELD_PREP
The GICv3 userspace accessors are all about dealing with conversion
between fields from architectural registers and internal representations.
However, and owing to the age of this code, the accessors use
a combination of shift/mask that is hard to read. It is nonetheless
easy to make it better by using the FIELD_{GET,PREP} macros that solely
rely on a mask.
This results in somewhat nicer looking code, and is probably easier
to maintain.
Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/kvm/vgic')
0 files changed, 0 insertions, 0 deletions