diff options
| author | Marc Zyngier <maz@kernel.org> | 2026-10-15 18:36:04 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-10-26 07:45:32 +0000 |
| commit | 00869b4a26deb3e52b2ad21f4239f3d533eb16e0 (patch) | |
| tree | 8685db35e252a82759a08d554c19b02589ae8815 /scripts/basic | |
| parent | 00e73757518020273ccf6308a51f214e58c21ad5 (diff) | |
| download | linux-00869b4a26deb3e52b2ad21f4239f3d533eb16e0.tar.gz linux-00869b4a26deb3e52b2ad21f4239f3d533eb16e0.zip | |
KVM: arm64: Convert HCR_xyz to HCR_EL2_xyz
Bulk convert all usages of HCR_xyz to HCR_EL2_xyz (the autogenerated
version) using the following proof that I can't write shell scripts:
awk 'match($3, /__HCR.*/) { print $2}' arch/arm64/include/asm/kvm_arm.h |
while read i; do
j=$(echo $i | sed -e "s/HCR_\(.*\)/\1/");
git grep -lw $i arch/arm64/ | xargs sed -i -e "s/\b$i\b/HCR_EL2_$j/g";
done
... and fixup the result.
Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev>
Tested-by: Fuad Tabba <fuad.tabba@linux.dev>
Tested-by: Itaru Kitayama <itaru.kitayama@fujitsu.com>
Link: https://patch.msgid.link/20261015173605.1072963-2-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
