From: Oliver Upton <oliver.upton@linux.dev>
To: kvm@vger.kernel.org
Cc: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-perf-users@vger.kernel.org, Mark Brown <broonie@kernel.org>,
Jing Zhang <jingzhangos@google.com>,
Zenghui Yu <yuzenghui@huawei.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
James Morse <james.morse@arm.com>, Marc Zyngier <maz@kernel.org>,
Paolo Bonzini <pbonzini@redhat.com>,
Adrian Hunter <adrian.hunter@intel.com>,
Ian Rogers <irogers@google.com>,
Namhyung Kim <namhyung@kernel.org>, Jiri Olsa <jolsa@kernel.org>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Mark Rutland <mark.rutland@arm.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Ingo Molnar <mingo@redhat.com>,
Peter Zijlstra <peterz@infradead.org>,
Oliver Upton <oliver.upton@linux.dev>
Subject: [PATCH v2 0/5] KVM: selftests: Add ID reg test, update headers
Date: Tue, 10 Oct 2023 01:10:17 +0000 [thread overview]
Message-ID: <20231010011023.2497088-1-oliver.upton@linux.dev> (raw)
The writable ID register test depends on the latest system register
definitions, which cannot be trivially added to tools. In order to keep
a single copy of sysreg gunk in tools all users (KVM selftests, perf)
need to be updated to generate headers at build time.
Tested arm64 and x86 builds of both KVM selftests and perf tool.
v1 -> v2:
- Use the sysreg definition generation script instead of copying the
output (broonie)
- Use a common Makefile for both KVM selftests as well as perf
- Include the KVM selftest responsible for the change
v1: https://lore.kernel.org/kvmarm/20231005180325.525236-1-oliver.upton@linux.dev/
Jing Zhang (2):
tools headers arm64: Update sysreg.h with kernel sources
KVM: arm64: selftests: Test for setting ID register from usersapce
Oliver Upton (3):
tools headers arm64: Copy sysreg-defs generation from kernel source
perf build: Generate arm64's sysreg-defs.h and add to include path
KVM: selftests: Generate sysreg-defs.h and add to include path
tools/arch/arm64/include/.gitignore | 1 +
tools/arch/arm64/include/asm/gpr-num.h | 26 +
tools/arch/arm64/include/asm/sysreg.h | 839 ++----
tools/arch/arm64/tools/Makefile | 38 +
tools/arch/arm64/tools/gen-sysreg.awk | 336 +++
tools/arch/arm64/tools/sysreg | 2497 +++++++++++++++++
tools/perf/Makefile.perf | 15 +-
tools/perf/check-headers.sh | 4 +
tools/perf/util/Build | 2 +-
tools/testing/selftests/kvm/Makefile | 24 +-
.../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/aarch64/set_id_regs.c | 479 ++++
.../selftests/kvm/lib/aarch64/processor.c | 6 +-
15 files changed, 3622 insertions(+), 667 deletions(-)
create mode 100644 tools/arch/arm64/include/.gitignore
create mode 100644 tools/arch/arm64/include/asm/gpr-num.h
create mode 100644 tools/arch/arm64/tools/Makefile
create mode 100755 tools/arch/arm64/tools/gen-sysreg.awk
create mode 100644 tools/arch/arm64/tools/sysreg
create mode 100644 tools/testing/selftests/kvm/aarch64/set_id_regs.c
base-commit: dafa493dd01d5992f1cb70b08d1741c3ab99e04a
--
2.42.0.609.gbb76f46606-goog
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2023-10-10 1:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-10 1:10 Oliver Upton [this message]
2023-10-10 1:10 ` [PATCH v2 1/5] tools headers arm64: Copy sysreg-defs generation from kernel source Oliver Upton
2023-10-10 17:50 ` Mark Brown
2023-10-11 16:51 ` Marc Zyngier
2023-10-11 16:59 ` Mark Brown
2023-10-11 18:05 ` Oliver Upton
2023-10-11 18:13 ` Mark Brown
2023-10-10 1:10 ` [PATCH v2 2/5] perf build: Generate arm64's sysreg-defs.h and add to include path Oliver Upton
2023-10-10 1:10 ` [PATCH v2 3/5] KVM: selftests: Generate " Oliver Upton
2023-10-10 17:53 ` Mark Brown
2023-10-10 1:10 ` [PATCH v2 4/5] tools headers arm64: Update sysreg.h with kernel sources Oliver Upton
2023-10-10 1:10 ` [PATCH v2 5/5] KVM: arm64: selftests: Test for setting ID register from usersapce Oliver Upton
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=20231010011023.2497088-1-oliver.upton@linux.dev \
--to=oliver.upton@linux.dev \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=broonie@kernel.org \
--cc=irogers@google.com \
--cc=james.morse@arm.com \
--cc=jingzhangos@google.com \
--cc=jolsa@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=maz@kernel.org \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=pbonzini@redhat.com \
--cc=peterz@infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).