From: Avi Kivity <avi@redhat.com>
To: Stephane Bakhos <nuitari-kvm@nuitari.net>
Cc: Andre Przywara <andre.przywara@amd.com>,
thomas.besser@kit.edu, kvm@vger.kernel.org
Subject: Re: Live migration stops working... (SEGFAULT)
Date: Tue, 18 Aug 2009 15:12:26 +0300 [thread overview]
Message-ID: <4A8A9AAA.7050305@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0908180403330.30830@anvil.nuitari.net>
[-- Attachment #1: Type: text/plain, Size: 506 bytes --]
On 08/18/2009 11:11 AM, Stephane Bakhos wrote:
>
> I've tried the patch and it did not help, however I could only have it
> on the receiver of the migration. Would it need to be installed on the
> one sending the data ?
>
> The guest kernel and userland are 32bits, the host's are 64 bits.
>
> I do not see any message about a faulting init.
It needs to be on both. However try this better patch (attached, needs
to be on both hosts).
--
error compiling committee.c: too many arguments to function
[-- Attachment #2: fix-sysenter-on-amd.patch --]
[-- Type: text/x-patch, Size: 1429 bytes --]
diff --git a/kvm/kernel/x86/svm.c b/kvm/kernel/x86/svm.c
index e158a2f..6df3cea 100644
--- a/kvm/kernel/x86/svm.c
+++ b/kvm/kernel/x86/svm.c
@@ -101,9 +101,6 @@ struct vcpu_svm {
unsigned long vmcb_pa;
struct svm_cpu_data *svm_data;
uint64_t asid_generation;
- uint64_t sysenter_cs;
- uint64_t sysenter_esp;
- uint64_t sysenter_eip;
u64 next_rip;
@@ -2087,13 +2084,13 @@ static int svm_get_msr(struct kvm_vcpu *vcpu, unsigned ecx, u64 *data)
break;
#endif
case MSR_IA32_SYSENTER_CS:
- *data = svm->sysenter_cs;
+ *data = svm->vmcb->save.sysenter_cs;
break;
case MSR_IA32_SYSENTER_EIP:
- *data = svm->sysenter_eip;
+ *data = svm->vmcb->save.sysenter_eip;
break;
case MSR_IA32_SYSENTER_ESP:
- *data = svm->sysenter_esp;
+ *data = svm->vmcb->save.sysenter_esp;
break;
/* Nobody will change the following 5 values in the VMCB so
we can safely return them on rdmsr. They will always be 0
@@ -2176,13 +2173,13 @@ static int svm_set_msr(struct kvm_vcpu *vcpu, unsigned ecx, u64 data)
break;
#endif
case MSR_IA32_SYSENTER_CS:
- svm->sysenter_cs = data;
+ svm->vmcb->save.sysenter_cs = data;
break;
case MSR_IA32_SYSENTER_EIP:
- svm->sysenter_eip = data;
+ svm->vmcb->save.sysenter_eip = data;
break;
case MSR_IA32_SYSENTER_ESP:
- svm->sysenter_esp = data;
+ svm->vmcb->save.sysenter_esp = data;
break;
case MSR_IA32_DEBUGCTLMSR:
if (!svm_has(SVM_FEATURE_LBRV)) {
next prev parent reply other threads:[~2009-08-18 12:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-17 13:57 Live migration stops working Thomas Besser
2009-08-17 15:01 ` Avi Kivity
2009-08-17 17:15 ` Stephane Bakhos
2009-08-17 18:03 ` Avi Kivity
2009-08-17 18:12 ` Stephane Bakhos
2009-08-17 19:12 ` Andre Przywara
2009-08-18 8:11 ` Live migration stops working... (SEGFAULT) Stephane Bakhos
2009-08-18 12:12 ` Avi Kivity [this message]
2009-08-19 5:54 ` Stephane Bakhos
2009-08-18 6:14 ` Live migration stops working Thomas Besser
2009-08-18 11:20 ` Avi Kivity
2009-08-18 12:07 ` Thomas Besser
2009-08-18 12:32 ` Avi Kivity
2009-08-18 13:05 ` Thomas Besser
2009-08-18 13:28 ` Thomas Besser
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=4A8A9AAA.7050305@redhat.com \
--to=avi@redhat.com \
--cc=andre.przywara@amd.com \
--cc=kvm@vger.kernel.org \
--cc=nuitari-kvm@nuitari.net \
--cc=thomas.besser@kit.edu \
/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.