From 8aba7cb07521f00660f81fd6b0a8733d89413b0a Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sat, 25 Feb 2017 17:17:35 +0100 Subject: [PATCH] trust uhyve's number of possible cores --- arch/x86/kernel/apic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c index d856d8c30..8bccab65b 100644 --- a/arch/x86/kernel/apic.c +++ b/arch/x86/kernel/apic.c @@ -887,7 +887,8 @@ no_mp: boot_processor = 0; apic_mp = NULL; apic_config = NULL; - ncores = 1; + if (!is_uhyve()) + ncores = 1; goto check_lapic; }