Skip to content

Commit 96d36ad

Browse files
ouptonMarc Zyngier
authored andcommitted
KVM: selftests: Add stress test for LPI injection
Now that all the infrastructure is in place, add a test to stress KVM's LPI injection. Keep a 1:1 mapping of device IDs to signalling threads, allowing the user to scale up/down the sender side of an LPI. Make use of the new VM stats for the translation cache to estimate the translation hit rate. Since the primary focus of the test is on performance, you'll notice that the guest code is not pedantic about the LPIs it receives. Counting the number of LPIs would require synchronization between the device and vCPU threads to avoid coalescing and would get in the way of performance numbers. Signed-off-by: Oliver Upton <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Zyngier <[email protected]>
1 parent c3c369b commit 96d36ad

File tree

2 files changed

+411
-0
lines changed

2 files changed

+411
-0
lines changed

tools/testing/selftests/kvm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ TEST_GEN_PROGS_aarch64 += aarch64/smccc_filter
158158
TEST_GEN_PROGS_aarch64 += aarch64/vcpu_width_config
159159
TEST_GEN_PROGS_aarch64 += aarch64/vgic_init
160160
TEST_GEN_PROGS_aarch64 += aarch64/vgic_irq
161+
TEST_GEN_PROGS_aarch64 += aarch64/vgic_lpi_stress
161162
TEST_GEN_PROGS_aarch64 += aarch64/vpmu_counter_access
162163
TEST_GEN_PROGS_aarch64 += access_tracking_perf_test
163164
TEST_GEN_PROGS_aarch64 += arch_timer

0 commit comments

Comments
 (0)