* [PATCH] svm: Fix migration in the middle of a syscall
@ 2010-01-27 13:17 Christoph Egger
2010-01-27 14:38 ` Keir Fraser
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Egger @ 2010-01-27 13:17 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 474 bytes --]
Hi!
Attached patch fixes migration in the middle of a syscall.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir: Please also apply this patch to xen-3.4-testing.
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
[-- Attachment #2: xen_vmcb_kerngsbase.diff --]
[-- Type: text/x-diff, Size: 825 bytes --]
diff -r c6f0968fdfe2 xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c Mon Jan 25 14:34:36 2010 +0100
+++ b/xen/arch/x86/hvm/svm/svm.c Wed Jan 27 14:17:31 2010 +0100
@@ -192,6 +192,7 @@ static int svm_vmcb_save(struct vcpu *v,
c->sysenter_cs = v->arch.hvm_svm.guest_sysenter_cs;
c->sysenter_esp = v->arch.hvm_svm.guest_sysenter_esp;
c->sysenter_eip = v->arch.hvm_svm.guest_sysenter_eip;
+ c->shadow_gs = vmcb->kerngsbase;
c->pending_event = 0;
c->error_code = 0;
@@ -251,6 +252,7 @@ static int svm_vmcb_restore(struct vcpu
v->arch.hvm_svm.guest_sysenter_cs = c->sysenter_cs;
v->arch.hvm_svm.guest_sysenter_esp = c->sysenter_esp;
v->arch.hvm_svm.guest_sysenter_eip = c->sysenter_eip;
+ vmcb->kerngsbase = c->shadow_gs;
if ( paging_mode_hap(v->domain) )
{
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] svm: Fix migration in the middle of a syscall
2010-01-27 13:17 [PATCH] svm: Fix migration in the middle of a syscall Christoph Egger
@ 2010-01-27 14:38 ` Keir Fraser
0 siblings, 0 replies; 2+ messages in thread
From: Keir Fraser @ 2010-01-27 14:38 UTC (permalink / raw)
To: Christoph Egger, xen-devel@lists.xensource.com
Looks like this is already handled in svm_{save,load}_cpu_state(). Did you
actually reproduce this bug?
-- Keir
On 27/01/2010 13:17, "Christoph Egger" <Christoph.Egger@amd.com> wrote:
>
> Hi!
>
> Attached patch fixes migration in the middle of a syscall.
>
> Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
>
> Keir: Please also apply this patch to xen-3.4-testing.
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-27 14:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-27 13:17 [PATCH] svm: Fix migration in the middle of a syscall Christoph Egger
2010-01-27 14:38 ` Keir Fraser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).