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

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

 



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@xxxxxxxxxx>
---
 x86/svm_tests.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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");
 
-- 
2.45.1





[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