From: Oliver Upton <oliver.upton@linux.dev>
To: kvmarm@lists.linux.dev
Cc: kvm@vger.kernel.org, Marc Zyngier <maz@kernel.org>,
James Morse <james.morse@arm.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Zenghui Yu <yuzenghui@huawei.com>,
Mark Brown <broonie@kernel.org>,
Jing Zhang <jingzhangos@google.com>,
Oliver Upton <oliver.upton@linux.dev>
Subject: [PATCH 0/2] tools: arm64: Sync sysreg.h with the kernel
Date: Thu, 5 Oct 2023 18:03:22 +0000 [thread overview]
Message-ID: <20231005180325.525236-1-oliver.upton@linux.dev> (raw)
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/20231003230408.3405722-13-oliver.upton@linux.dev/
[2]: https://lore.kernel.org/linux-next/20231005123159.1b7dff0f@canb.auug.org.au/
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
--
2.42.0.609.gbb76f46606-goog
next reply other threads:[~2023-10-05 18:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-05 18:03 Oliver Upton [this message]
2023-10-05 18:03 ` [PATCH 1/2] tools: arm64: Add a copy of sysreg-defs.h generated from the kernel Oliver Upton
2023-10-06 0:23 ` Mark Brown
2023-10-06 9:23 ` Oliver Upton
2023-10-06 11:33 ` Mark Brown
2023-10-06 19:41 ` Oliver Upton
2023-10-06 20:52 ` Mark Brown
2023-10-05 18:03 ` [PATCH 2/2] tools: arm64: Sync sysreg.h with the kernel source Oliver Upton
2023-10-05 18:25 ` [PATCH 0/2] tools: arm64: Sync sysreg.h with the kernel Marc Zyngier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231005180325.525236-1-oliver.upton@linux.dev \
--to=oliver.upton@linux.dev \
--cc=broonie@kernel.org \
--cc=james.morse@arm.com \
--cc=jingzhangos@google.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=maz@kernel.org \
--cc=suzuki.poulose@arm.com \
--cc=yuzenghui@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.