Skip to content

tools: arm64: Sync sysreg.h with the kernel

Oliver Upton kvm kvmarm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tools: arm64: Add a copy of sysreg-defs.h generated from the kerneltools/arch/arm64/include/asm/sysreg-defs.h+6806 -05 replies
2/2tools: arm64: Sync sysreg.h with the kernel sourcetools/arch/arm64/include/asm/gpr-num.h tools/arch/arm64/include/asm/sysreg.h tools/testing/selftests/kvm/aarch64/aarch32_id_regs.c +3 more+232 -6610 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarc Zyngier
SeriesA-b
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] tools: arm64: Sync sysreg.h with the kernel

KVM selftests needs to use the full set of sysreg definitions for an upcoming change [1]. We took a stab at copying the entire sysreg generation infrastructure into the tools directory, but that exploded and broke the build for perf, oops [2].

Short of better build infrastructure in tools for handling common prerequisite tasks, this series takes the lazy route and copies the generated output of the sysreg infra from the kernel.

Plan is to apply this series as part of the 'writable' ID register series, replacing the broken change.

[1]: https://lore.kernel.org/kvmarm/[email protected]/
[2]: https://lore.kernel.org/linux-next/[email protected]/

Jing Zhang (1):
tools: arm64: Sync sysreg.h with the kernel source

Oliver Upton (1):
tools: arm64: Add a copy of sysreg-defs.h generated from the kernel

 tools/arch/arm64/include/asm/gpr-num.h        |   26 +
 tools/arch/arm64/include/asm/sysreg-defs.h    | 6806 +++++++++++++++++
 tools/arch/arm64/include/asm/sysreg.h         |  839 +-
 .../selftests/kvm/aarch64/aarch32_id_regs.c   |    4 +-
 .../selftests/kvm/aarch64/debug-exceptions.c  |   12 +-
 .../selftests/kvm/aarch64/page_fault_test.c   |    6 +-
 .../selftests/kvm/lib/aarch64/processor.c     |    6 +-
 7 files changed, 7038 insertions(+), 661 deletions(-)
 create mode 100644 tools/arch/arm64/include/asm/gpr-num.h
 create mode 100644 tools/arch/arm64/include/asm/sysreg-defs.h
Signature · 1 line
2.42.0.609.gbb76f46606-goog