ipi tests can only run on smp for example. Signed-off-by: Avi Kivity <avi@xxxxxxxxxx> --- kvm/user/test/x86/vmexit.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/kvm/user/test/x86/vmexit.c b/kvm/user/test/x86/vmexit.c index cce26d9..76f676d 100644 --- a/kvm/user/test/x86/vmexit.c +++ b/kvm/user/test/x86/vmexit.c @@ -54,6 +54,7 @@ static void mov_to_cr8(void) static struct test { void (*func)(void); const char *name; + int (*valid)(void); } tests[] = { { cpuid, "cpuid", }, { vmcall, "vmcall", }, @@ -67,6 +68,11 @@ static void do_test(struct test *test) unsigned long long t1, t2; void (*func)(void) = test->func; + if (test->valid && !test->valid()) { + printf("%s (skipped)\n", test->name); + return; + } + t1 = rdtsc(); for (i = 0; i < N; ++i) func(); -- 1.6.4.1 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html