[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kvm
Subject:    [PATCH kvm-unit-tests] reduce number of iterations for apic test
From:       Paolo Bonzini <pbonzini () redhat ! com>
Date:       2020-10-31 14:40:52
Message-ID: 20201031144052.3982250-1-pbonzini () redhat ! com
[Download RAW message or body]

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@canonical.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic