[PATCH kvm-unit-tests] reduce number of iterations for apic test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The test generally fails quite quickly, 1 million iterations is
a lot and, on Azure cloud hyperv instance Standard_D48_v3, it will
take about 45 seconds to run this apic test.

It takes even longer (about 150 seconds) to run inside a KVM instance
VM.Standard2.1 on Oracle cloud.

Reported-by: Po-Hsu Lin <po-hsu.lin@xxxxxxxxxxxxx>
Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
---
 x86/apic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x86/apic.c b/x86/apic.c
index 82c6ab2..23508ad 100644
--- a/x86/apic.c
+++ b/x86/apic.c
@@ -437,7 +437,7 @@ static void test_multiple_nmi(void)
     handle_irq(2, multiple_nmi_handler);
     handle_irq(0x44, flush_nmi);
     on_cpu_async(1, kick_me_nmi, 0);
-    for (i = 0; i < 1000000; ++i) {
+    for (i = 0; i < 100000; ++i) {
 	nmi_flushed = false;
 	nmi_received = 0;
 	++cpu0_nmi_ctr1;
-- 
2.26.2




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux