Skip to content

x86/apic: Cleanups and new tests

Sean Christopherson kvm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9x86/apic: Add test config to allow running apic tests against SVM's AVICx86/unittests.cfg+14 -10 replies
2/9x86/apic: Replaces spaces with tabs to fix indentation in apic.cx86/apic.c+327 -3340 replies
3/9x86/apic: Add helpers to query current APIC state, e.g. xAPIC vs. x2APICx86/apic.c+25 -140 replies
4/9x86/apic: Assert that vCPU0's APIC is enabled at the start of the testx86/apic.c+8 -00 replies
5/9x86/apic: Restore APIC to original state after every sub-testx86/apic.c+43 -490 replies
6/9x86/apic: Enable IRQs on vCPU0 for all testsx86/apic.c+1 -30 replies
7/9x86/apic: Run tests that modify APIC ID and/or APIC_BASE after other testsx86/apic.c+8 -20 replies
8/9x86/apic: Add test for logical mode IPI delivery (cluster and flat)x86/apic.c+192 -90 replies
9/9x86/apic: Add test to verify aliased xAPIC IDs both receive IPIlib/x86/processor.h x86/apic.c+68 -00 replies

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 PATCH 0/9] x86/apic: Cleanups and new tests

Clean up the APIC test, add a new config to target AVIC, and add new sub-tests to verify IPI delivery when using logical mode, and when two vCPUs share the same xAPIC ID. In other words, add tests for edge cases that no real world user cares about.

Sean Christopherson (9):
x86/apic: Add test config to allow running apic tests against SVM's
AVIC
x86/apic: Replaces spaces with tabs to fix indentation in apic.c x86/apic: Add helpers to query current APIC state, e.g. xAPIC vs.
x2APIC
x86/apic: Assert that vCPU0's APIC is enabled at the start of the test x86/apic: Restore APIC to original state after every sub-test x86/apic: Enable IRQs on vCPU0 for all tests
x86/apic: Run tests that modify APIC ID and/or APIC_BASE after other
tests
x86/apic: Add test for logical mode IPI delivery (cluster and flat) x86/apic: Add test to verify aliased xAPIC IDs both receive IPI

 lib/x86/processor.h |   1 +
 x86/apic.c          | 940 ++++++++++++++++++++++++++++----------------
 x86/unittests.cfg   |  15 +-
 3 files changed, 615 insertions(+), 341 deletions(-)

base-commit: d8a4f9e5e8d69d4ef257b40d6cd666bd2f63494e

Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog