Skip to contentSkip to conversation

KVM: arm64: selftests: Actually enable IRQs in vgic_lpi_stress

PATCH Applied Oliver Upton 3 participants 3 messages Oct 7, 2025 – Oct 13, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: arm64: selftests: Actually enable IRQs in vgic_lpi_stress

vgic_lpi_stress rather hilariously leaves IRQs disabled for the duration of the test. While the ITS translation of MSIs happens regardless of this, for completeness the guest should actually handle the LPIs.

---
 tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c +1 -0
index 87922a89b134..b890d7d91de1 100644
@@ -123,6 +123,7 @@ static void guest_setup_gic(void)
 static void guest_code(size_t nr_lpis)
 {
 	guest_setup_gic();
+	local_irq_enable();
 
 	GUEST_SYNC(0);
 

base-commit: 10fd0285305d0b48e8a3bf15d4f17fc4f3d68cb6

Signature · 1 line
2.39.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Oliver Upton

vgic_lpi_stress rather hilariously leaves IRQs disabled for the duration of the test. While the ITS translation of MSIs happens regardless of this, for completeness the guest should actually handle the LPIs.

---
 tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c +0 -0
index 87922a89b134..b890d7d91de1 100644

tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c static void guest_setup_gic(void) · line 128

Quoted 6 lines
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c +1 -0
@@ -123,6 +123,7 @@ static void guest_setup_gic(void)
 static void guest_code(size_t nr_lpis)
 {
 	guest_setup_gic();
+	local_irq_enable();
 
 	GUEST_SYNC(0);

Thanks,
Zenghui

maintainer Applied
#2 lore raw
In reply to Oliver Upton
Quoted 5 lines · Oliver Upton

vgic_lpi_stress rather hilariously leaves IRQs disabled for the duration of the test. While the ITS translation of MSIs happens regardless of this, for completeness the guest should actually handle the LPIs.

Applied to fixes, thanks!

[1/1] KVM: arm64: selftests: Actually enable IRQs in vgic_lpi_stress

      commit: d5e6310a0d996493b1af9f3eeec418350523388b

Cheers,

	M.
Signature · 1 line
Without deviation from the norm, progress is not possible.