WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] xen: fix s3 resume on AMD CPUs

To: "Christoph Egger" <Christoph.Egger@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH] xen: fix s3 resume on AMD CPUs
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Tue, 16 Jun 2009 09:30:57 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Tue, 16 Jun 2009 01:31:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200906151733.02897.Christoph.Egger@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C64E9416.CDC3%keir.fraser@xxxxxxxxxxxxx> <200906151733.02897.Christoph.Egger@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> Christoph Egger <Christoph.Egger@xxxxxxx> 15.06.09 17:33 >>>
>@@ -174,8 +177,11 @@ wakeup_64:
>         mov     $(__HYPERVISOR_DS64), %eax
>         mov     %eax, %ds
> 
>-        # long jump to return point, with cs reload
>-        rex64 ljmp    *ret_point(%rip)
>+        /* Continue with wakeup in the high-level wakeup code.
>+         * Reload cs there.
>+         */
>+        movq    ret_point(%rip), %rbx
>+        jmp     *%rbx
> 
>         .align 8
> ret_point:

Why do you add a comment ("Reload cs here") here that is not in sync with
the changed code?

Also, if the sole reference ro ret_point is now a near jump, why don't you
remove the selector part of ret_point itself? Further more, why does this
need to be an indirect jump now that it's not a far jump anymore?

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel