From: Colton Lewis <coltonlewis@google.com>
To: kvm@vger.kernel.org
Cc: Marc Zyngier <maz@kernel.org>,
Oliver Upton <oliver.upton@linux.dev>,
James Morse <james.morse@arm.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Zenghui Yu <yuzenghui@huawei.com>,
Ricardo Koller <ricarkol@google.com>,
kvmarm@lists.linux.dev, Colton Lewis <coltonlewis@google.com>
Subject: [PATCH v4 0/3] Add arch_timer_edge_cases selftest
Date: Thu, 7 Mar 2024 18:39:04 +0000 [thread overview]
Message-ID: <20240307183907.1184775-1-coltonlewis@google.com> (raw)
Add arch_timer_edge_cases selftest to test various corner cases of the
ARM timers such as:
* timers above the max TVAL value
* timers in the past
* moving counters ahead and behind pending timers
* reprograming timers
* timers fired multiple times
* masking/unmasking using the timer control mask
These are intentionally unusual scenarios to stress compliance with
the arm architecture.
v4:
* Convert macros to functions where possible
* Remove magic numbers
* Improve naming of variables and types
v3:
https://lore.kernel.org/kvmarm/20231103192915.2209393-1-coltonlewis@google.com/
v2:
https://lore.kernel.org/kvmarm/20230928210201.1310536-1-coltonlewis@google.com/
v1:
https://lore.kernel.org/kvm/20230516213731.387132-1-coltonlewis@google.com/
Colton Lewis (3):
KVM: arm64: selftests: Standardize GIC base addresses
KVM: arm64: selftests: Guarantee interrupts are handled
KVM: arm64: selftests: Add arch_timer_edge_cases selftest
tools/testing/selftests/kvm/Makefile | 1 +
.../selftests/kvm/aarch64/arch_timer.c | 8 +-
.../kvm/aarch64/arch_timer_edge_cases.c | 1102 +++++++++++++++++
.../testing/selftests/kvm/aarch64/vgic_irq.c | 23 +-
.../kvm/aarch64/vpmu_counter_access.c | 3 +-
.../selftests/kvm/dirty_log_perf_test.c | 5 +-
.../kvm/include/aarch64/arch_timer.h | 18 +-
.../selftests/kvm/include/aarch64/gic.h | 8 +-
.../selftests/kvm/include/aarch64/vgic.h | 3 +-
tools/testing/selftests/kvm/lib/aarch64/gic.c | 12 +-
.../testing/selftests/kvm/lib/aarch64/vgic.c | 7 +-
11 files changed, 1158 insertions(+), 32 deletions(-)
create mode 100644 tools/testing/selftests/kvm/aarch64/arch_timer_edge_cases.c
--
2.44.0.278.ge034bb2e1d-goog
next reply other threads:[~2024-03-07 18:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-07 18:39 Colton Lewis [this message]
2024-03-07 18:39 ` [PATCH v4 1/3] KVM: arm64: selftests: Standardize GIC base addresses Colton Lewis
2024-03-07 18:39 ` [PATCH v4 2/3] KVM: arm64: selftests: Guarantee interrupts are handled Colton Lewis
2024-03-11 4:57 ` Oliver Upton
2024-03-11 17:14 ` Colton Lewis
2024-03-11 17:48 ` Colton Lewis
2024-03-07 18:39 ` [PATCH v4 3/3] KVM: arm64: selftests: Add arch_timer_edge_cases selftest Colton Lewis
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=20240307183907.1184775-1-coltonlewis@google.com \
--to=coltonlewis@google.com \
--cc=james.morse@arm.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=maz@kernel.org \
--cc=oliver.upton@linux.dev \
--cc=ricarkol@google.com \
--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