From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Lynn Kerby <lfk-br2HoPxSX4msTnJN9+BGXg@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: SMP support on AMD64
Date: Wed, 07 Nov 2007 13:06:48 +0200 [thread overview]
Message-ID: <47319C48.2050504@qumranet.com> (raw)
In-Reply-To: <D3916147-28BE-4F52-A1F4-8CBCC8D81C72-br2HoPxSX4msTnJN9+BGXg@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1683 bytes --]
Lynn Kerby wrote:
> Hi KVM developers (and lurkers like myself).
>
> Apologies in advance as this is probably not the right forum for this
> question.
>
It is certainly the right forum.
> I've had no success getting an SMP virtual machine running on my AMD
> Athlon64 X2 server. The base system is Ubuntu 7.10 (recently
> upgraded from 7.04) with a 2.6.22 kernel and I've tried kvm releases
> 49 & 50 with no success. My memory of whether or not it worked
> months ago with kvm-28 on the Ubuntu 2.6.20-16 kernel is no longer
> with me :-(. The recent failures have all been BIOS problems at
> rombios.c:10605. I'm pretty sure I must have something wrong in my
> environment and have spent entirely too much of my spare time trying
> various things with no success.
>
Yes you've been doing something wrong -- you should have reported this
quickly. Worst case somebody would have pointed out something trivial
you're doing wrong and you'd have felt foolish for a bit. But in this
particular case...
> Can someone that has actually has an SMP virtual machine running
> currently on an AMD processor (preferably a 64-bit guest) give me
> some details on the base system kernel, KVM related bits, and the
> guest OS?
>
>
Turns out kvm smp on amd is broken. I committed a fix for kvm-51, and
now I have FC6 running happily with two vcpus.
If you see problems, please report them soon. I'd rather have noise on
the list than problems going unreported.
I'm attaching the patch which fixes the problem, let us know if it helps
or not (there may be more problems lurking).
--
error compiling committee.c: too many arguments to function
[-- Attachment #2: amd-smp.patch --]
[-- Type: text/x-patch, Size: 752 bytes --]
commit 157117844e1d228db58dfe7fbd51c5a225ceafe4
Author: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Date: Wed Nov 7 12:57:23 2007 +0200
KVM: SVM: Fix SMP with kernel apic
AP processor needs to reset to the SIPI vector, not normal INIT.
Signed-off-by: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
diff --git a/kernel/svm.c b/kernel/svm.c
index 95a3489..ea2cb83 100644
--- a/kernel/svm.c
+++ b/kernel/svm.c
@@ -563,6 +563,12 @@ static int svm_vcpu_reset(struct kvm_vcpu *vcpu)
init_vmcb(svm->vmcb);
+ if (vcpu->vcpu_id != 0) {
+ svm->vmcb->save.rip = 0;
+ svm->vmcb->save.cs.base = svm->vcpu.sipi_vector << 12;
+ svm->vmcb->save.cs.selector = svm->vcpu.sipi_vector << 8;
+ }
+
return 0;
}
[-- Attachment #3: Type: text/plain, Size: 314 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
[-- Attachment #4: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
next prev parent reply other threads:[~2007-11-07 11:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-07 2:31 SMP support on AMD64 Lynn Kerby
[not found] ` <D3916147-28BE-4F52-A1F4-8CBCC8D81C72-br2HoPxSX4msTnJN9+BGXg@public.gmane.org>
2007-11-07 7:30 ` Izik Eidus
2007-11-07 11:06 ` Avi Kivity [this message]
[not found] ` <47319C48.2050504-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-11-07 23:48 ` Lynn Kerby
[not found] ` <55C928E7-E198-411C-9B32-2B1484666AF0-br2HoPxSX4msTnJN9+BGXg@public.gmane.org>
2007-11-08 6:05 ` Avi Kivity
[not found] ` <4732A747.7040004-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-11-08 7:00 ` Alexey Eremenko
[not found] ` <7fac565a0711072300n5010cc08x371fabf20fffc564-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-11-08 7:22 ` Avi Kivity
2007-11-08 12:09 ` Gildas
[not found] ` <b2ace7f20711080409y6f146e43t31c8b2bad9e23394-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-11-08 13:07 ` Dor Laor
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=47319C48.2050504@qumranet.com \
--to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=lfk-br2HoPxSX4msTnJN9+BGXg@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox