diff mbox series

[kvm-unit-tests] svm: make the interrupt_test a bit longer

Message ID 20240603101952.621867-1-pbonzini@redhat.com (mailing list archive)
State New, archived
Headers show
Series [kvm-unit-tests] svm: make the interrupt_test a bit longer | expand

Commit Message

Paolo Bonzini June 3, 2024, 10:19 a.m. UTC
When running under QEMU, a 1-nanosecond periodic timer leaves no room
for the test code to run.  Make the period longer.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 x86/svm_tests.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/x86/svm_tests.c b/x86/svm_tests.c
index 33b25599..416b6aad 100644
--- a/x86/svm_tests.c
+++ b/x86/svm_tests.c
@@ -1154,7 +1154,7 @@  static void interrupt_test(struct svm_test *test)
 
 	apic_setup_timer(TIMER_VECTOR, APIC_LVT_TIMER_PERIODIC);
 	sti();
-	apic_start_timer(1);
+	apic_start_timer(1000);
 
 	for (loops = 0; loops < 10000000 && !timer_fired; loops++)
 		asm volatile ("nop");
@@ -1167,7 +1167,7 @@  static void interrupt_test(struct svm_test *test)
 	vmmcall();
 
 	timer_fired = false;
-	apic_start_timer(1);
+	apic_start_timer(1000);
 	for (loops = 0; loops < 10000000 && !timer_fired; loops++)
 		asm volatile ("nop");