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