KVM: arm64: Macros for setting/clearing FGT bits
authorFuad Tabba <tabba@google.com>
Thu, 14 Dec 2023 10:01:54 +0000 (10:01 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 18 Dec 2023 11:25:51 +0000 (11:25 +0000)
commit0ccd901da1886cf9dc53ab36ad8f1160b65e41f1
tree136fa5ae9410cacdc33d5cec971a528e62fce024
parent5f6bd3f3daaaab8559ad7d2266ba38345231b7ae
KVM: arm64: Macros for setting/clearing FGT bits

There's a lot of boilerplate code for setting and clearing FGT
bits when activating guest traps. Refactor it into macros. These
macros will also be used in future patch series.

No functional change intended.

Signed-off-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231214100158.2305400-15-tabba@google.com
arch/arm64/kvm/hyp/include/hyp/switch.h