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] small adjustment to asm constraints for c/s 1940

To: Jan Beulich <jbeulich@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] small adjustment to asm constraints for c/s 19400
From: "Lu, Guanqun" <guanqun.lu@xxxxxxxxx>
Date: Mon, 30 Mar 2009 12:45:02 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Sun, 29 Mar 2009 21:46:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49CD0E76.76E4.0078.0@xxxxxxxxxx>
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: <49CD0E76.76E4.0078.0@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acmu+gmJfp6EF1SQRvGgEfYJFx/uoAB9+cww
Thread-topic: [Xen-devel] [PATCH] small adjustment to asm constraints for c/s 19400
Hi Jan,

On Saturday, March 28, 2009 12:36 AM Jan Beulich wrote:

> Properly indicate the variable that the asm writes to, and allow
> compiler more freedom in selecting a suitable input operand for the
> ltr instruction.
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
> 
> --- 2009-03-27.orig/xen/arch/x86/traps.c      2009-03-24
> 09:04:02.000000000 +0100 +++
> 2009-03-27/xen/arch/x86/traps.c       2009-03-27 10:10:57.000000000 +0100
> @@ -3048,8 +3048,8 @@ void load_TR(void) 
> 
>      /* Switch to non-compat GDT (which has B bit clear) to execute
>      LTR. */ asm volatile (
> -        "sgdt %1; lgdt %2; ltr %%ax; lgdt %1"
> -        : : "a" (TSS_ENTRY << 3), "m" (old_gdt), "m" (tss_gdt) :
> "memory" ); +        "sgdt %0; lgdt %2; ltr %w1; lgdt %0"
> +        : "=m" (old_gdt) : "rm" (TSS_ENTRY << 3), "m" (tss_gdt) :
>  "memory" ); }
> 
>  void __devinit percpu_traps_init(void)
> 

With this adjustment or previous patch 19400, S3 still fails on 64 xen / 32 
dom0.
Do you have any idea what will cause this problem?

Thanks.

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



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