From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony PERARD Subject: [PATCH V3] xen: Don't perform SMP setup. Date: Mon, 24 Jun 2013 14:35:08 +0100 Message-ID: <1372080908-17770-1-git-send-email-anthony.perard@citrix.com> References: <1372080780-17379-1-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1372080780-17379-1-git-send-email-anthony.perard@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen Devel Cc: Anthony PERARD , Stefano Stabellini , Ian Campbell List-Id: xen-devel@lists.xenproject.org This is not needed and in case one want to start a guest with fewer vCPU than the maximum, the function will fail (infinite loop). It's a "backport" of 5dbf1732940f94771e0b3c45c0960940276bc263. Signed-off-by: Anthony PERARD --- src/smp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/smp.c b/src/smp.c index 3c36f8c..742e371 100644 --- a/src/smp.c +++ b/src/smp.c @@ -84,6 +84,9 @@ int apic_id_is_present(u8 apic_id) void smp_probe(void) { + if (usingXen()) + return; + ASSERT32FLAT(); u32 eax, ebx, ecx, cpuid_features; cpuid(1, &eax, &ebx, &ecx, &cpuid_features); -- Anthony PERARD