KVM: arm64: Refactor CPACR trap bit setting/clearing to use ELx format
When setting/clearing CPACR bits for EL0 and EL1, use the ELx format of the bits, which covers both. This makes the code clearer, and reduces the chances of accidentally missing a bit. No functional change intended. Reviewed-by:Oliver Upton <oliver.upton@linux.dev> Signed-off-by:
Fuad Tabba <tabba@google.com> Link: https://lore.kernel.org/r/20240603122852.3923848-9-tabba@google.com Signed-off-by:
Marc Zyngier <maz@kernel.org>
Showing
- arch/arm64/include/asm/el2_setup.h 3 additions, 3 deletionsarch/arm64/include/asm/el2_setup.h
- arch/arm64/include/asm/kvm_emulate.h 4 additions, 5 deletionsarch/arm64/include/asm/kvm_emulate.h
- arch/arm64/kvm/fpsimd.c 1 addition, 3 deletionsarch/arm64/kvm/fpsimd.c
- arch/arm64/kvm/hyp/nvhe/pkvm.c 1 addition, 1 deletionarch/arm64/kvm/hyp/nvhe/pkvm.c
- arch/arm64/kvm/hyp/nvhe/switch.c 2 additions, 3 deletionsarch/arm64/kvm/hyp/nvhe/switch.c
- arch/arm64/kvm/hyp/vhe/switch.c 3 additions, 4 deletionsarch/arm64/kvm/hyp/vhe/switch.c
Please register or sign in to comment