Home
last modified time | relevance | path

Searched refs:cpu_count (Results 1 – 14 of 14) sorted by relevance

/kvm-unit-tests/lib/x86/
H A Dsmp.c70 int cpu_count(void) in cpu_count() function
132 for (cpu = cpu_count() - 1; cpu >= 0; --cpu) in on_cpus()
154 for (i = 1; i < cpu_count(); ++i) in smp_init()
170 for (i = 1; i < cpu_count(); ++i) in smp_reset_apic()
H A Dsmp.h90 int cpu_count(void);
H A Dvm.c215 for (i = 1; i < cpu_count(); i++) in setup_mmu()
/kvm-unit-tests/x86/
H A Dsmptest.c23 ncpus = cpu_count(); in main()
H A Dkvmclock_test.c93 printf("Total vcpus: %d\n", cpu_count()); in cycle_test()
118 ncpus = cpu_count(); in main()
H A Dapic.c254 if (cpu_count() < 2) in test_apic_id()
352 if (cpu_count() < 2) in test_sti_nmi()
411 if (cpu_count() < 2) in test_multiple_nmi()
537 unsigned ncpus = cpu_count(); in test_physical_broadcast()
735 if (dest == 0xff && cpu_count() > 2) in test_logical_ipi_multi_target()
750 if (cpu_count() < 2) in test_logical_ipi_xapic()
877 if (cpu_count() < 2) in test_aliased_xapic_physical_ipi()
H A Dioapic.c510 if (cpu_count() > 1) in main()
512 if (cpu_count() > 3) in main()
515 if (cpu_count() > 1) { in main()
H A Dsvm.c48 return cpu_count() > 1; in smp_supported()
330 for (i = 1; i < cpu_count(); i++) in setup_svm()
405 if (cpu_count() <= svm_tests[i].on_vcpu) in run_svm_tests()
H A Dhyperv_synic.c155 ncpus = cpu_count(); in main()
H A Dhyperv_clock.c179 ncpus = cpu_count(); in main()
H A Dvmexit.c60 return cpu_count() > 1; in is_smp()
607 nr_cpus = cpu_count(); in main()
H A Dhyperv_stimer.c419 ncpus = cpu_count(); in stimer_test_all()
H A Dhyperv_connections.c275 ncpus = cpu_count(); in main()
H A Dvmx_tests.c1775 if (cpu_count() < 2) { in nmi_hlt_main()
9476 if (!cpu_has_apicv() || (cpu_count() < 2)) { in vmx_eoi_bitmap_ioapic_scan_test()
9579 if (set_irq_line_from_thread && (cpu_count() < 2)) { in vmx_apic_passthrough()
9765 if (cpu_count() < 2) { in vmx_init_signal_test()
9969 if (cpu_count() < 2) { in vmx_sipi_signal_test()
11339 if (cpu_count() < 2) { in vmx_posted_interrupts_test()