Skip to content

x86: add HPET counter tests

Igor Mammedov kvm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 7 repliesIn review
  2. v32 patches 0 repliesSuperseded

Changes in v4 from the cover letter

* fix smap/pku/pks tests that were failing CI
* on_cpus() wasn't running task on CPUs above 255, fix x86/smp code to correctly account for APIC IDs above 255
* bump max cpus limit to 1024
* hpet: count 0 latency as failure to avoid missing APs that doesn't run reader task
* hpet: replace on_cpus() with on_cpus_async() to to run reader task only on explicitly selected APs.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86: resize id_map[] elements to u32lib/x86/apic.c lib/x86/apic.h+2 -21 reply
2/5x86: fix APs with APIC ID more that 255 not showing in id_maplib/x86/setup.c x86/cstart.S+2 -21 reply
3/5x86: move USERBASE to 32Mb in smap/pku/pks testsx86/pks.c x86/pku.c x86/smap.c+3 -32 replies
4/5x86: bump number of max cpus to 1024lib/x86/smp.h+1 -11 reply
5/5x86: add HPET counter read micro benchmark and enable/disable torture testsx86/Makefile.common x86/hpet_read_test.c+95 -01 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchPeter Xu
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

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

Read the v4 thread

Cover letter [kvm-unit-tests PATCH v4 0/5] x86: add HPET counter tests

Changelog:
v4:
* fix smap/pku/pks tests that were failing CI
* on_cpus() wasn't running task on CPUs above 255, fix x86/smp code to correctly account for APIC IDs above 255
* bump max cpus limit to 1024
* hpet: count 0 latency as failure to avoid missing APs that doesn't run reader task
* hpet: replace on_cpus() with on_cpus_async() to to run reader task only on explicitly selected APs.
v3:
* fix test running long time due to control thread also running read test and stalling starting other threads
* improve latency accuracy
* increase max number of vcpus to 448
(that's what I had in hands for testing)

previous rev:
"[kvm-unit-tests PATCH v3 0/2] x86: add HPET counter tests"
https://yhbt.net/lore/all/[email protected]/T/#t

Igor Mammedov (5):
x86: resize id_map[] elements to u32
x86: fix APs with APIC ID more that 255 not showing in id_map
x86: move USERBASE to 32Mb in smap/pku/pks tests
x86: bump number of max cpus to 1024
x86: add HPET counter read micro benchmark and enable/disable torture
tests

 lib/x86/apic.h       |  2 +-
 lib/x86/smp.h        |  2 +-
 lib/x86/apic.c       |  2 +-
 lib/x86/setup.c      |  2 +-
 x86/Makefile.common  |  2 +
 x86/cstart.S         |  2 +-
 x86/hpet_read_test.c | 93 ++++++++++++++++++++++++++++++++++++++++++++
 x86/pks.c            |  2 +-
 x86/pku.c            |  2 +-
 x86/smap.c           |  2 +-
 10 files changed, 103 insertions(+), 8 deletions(-)
 create mode 100644 x86/hpet_read_test.c
Signature · 1 line
2.47.1