From: Anthony PERARD <anthony.perard@citrix.com>
To: Xen Devel <xen-devel@lists.xen.org>
Cc: Anthony PERARD <anthony.perard@citrix.com>,
Stefano Stabellini <stefano.stabellini@citrix.com>,
Ian Campbell <ian.campbell@citrix.com>
Subject: [PATCH V3] xen: Don't perform SMP setup.
Date: Mon, 24 Jun 2013 14:35:08 +0100 [thread overview]
Message-ID: <1372080908-17770-1-git-send-email-anthony.perard@citrix.com> (raw)
In-Reply-To: <1372080780-17379-1-git-send-email-anthony.perard@citrix.com>
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 <anthony.perard@citrix.com>
---
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
next prev parent reply other threads:[~2013-06-24 13:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-24 13:32 [PATCH v3 0/2] CPU hotplug for qemu-xen Anthony PERARD
2013-06-24 13:32 ` [PATCH v3 1/2] libxl: Add "cpu-add" QMP command Anthony PERARD
2013-06-24 16:00 ` George Dunlap
2013-06-24 13:33 ` [PATCH v3 2/2] libxl: Use QMP cpu-add to hotplug CPU with qemu-xen Anthony PERARD
2013-06-24 15:57 ` George Dunlap
2013-06-24 13:35 ` Anthony PERARD [this message]
2013-06-26 16:24 ` [PATCH V3] xen: Don't perform SMP setup Ian Campbell
2013-06-26 16:50 ` Anthony PERARD
2013-06-26 17:03 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1372080908-17770-1-git-send-email-anthony.perard@citrix.com \
--to=anthony.perard@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=stefano.stabellini@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.