Skip to content

RFC KVM: arm64: Statistical Profiling Extension Tests

Eric Auger kvm kvmarm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4arm64: Move get_id_aa64dfr0() in processor.harm/pmu.c lib/arm64/asm/processor.h+5 -10 replies
2/4spe: Probing and Introspection Testarm/Makefile.common arm/spe.c arm/unittests.cfg+172 -00 replies
3/4spe: Add profiling buffer testarm/spe.c arm/unittests.cfg lib/arm64/asm/barrier.h+170 -00 replies
4/4spe: Test Profiling Buffer Eventsarm/spe.c arm/unittests.cfg+148 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [kvm-unit-tests RFC 0/4] KVM: arm64: Statistical Profiling Extension Tests

This series implements tests exercising the Statistical Profiling Extensions.

This was tested with associated unmerged kernel [1] and QEMU [2] series.

Depending on the comments, I can easily add other tests checking more configs, additional events and testing migration too. I hope this can be useful when respinning both series.

All SPE tests can be launched with:
./run_tests.sh -g spe
Tests also can be launched individually. For example:
./arm-run arm/spe.flat -append 'spe-buffer'

The series can be found at:
https://github.com/eauger/kut/tree/spe_rfc

References:
[1] [PATCH v2 00/18] arm64: KVM: add SPE profiling support
[2] [PATCH 0/7] target/arm: Add vSPE support to KVM guest

Eric Auger (4):
arm64: Move get_id_aa64dfr0() in processor.h
spe: Probing and Introspection Test
spe: Add profiling buffer test
spe: Test Profiling Buffer Events

 arm/Makefile.common       |   1 +
 arm/pmu.c                 |   1 -
 arm/spe.c                 | 463 ++++++++++++++++++++++++++++++++++++++
 arm/unittests.cfg         |  24 ++
 lib/arm64/asm/barrier.h   |   1 +
 lib/arm64/asm/processor.h |   5 +
 6 files changed, 494 insertions(+), 1 deletion(-)
 create mode 100644 arm/spe.c
Signature · 1 line
2.21.3