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

[Xen-devel] RE: question about patch 13252

To: "Lu, Guanqun" <guanqun.lu@xxxxxxxxx>, "jbeulich@xxxxxxxxxx" <jbeulich@xxxxxxxxxx>
Subject: [Xen-devel] RE: question about patch 13252
From: "Lu, Guanqun" <guanqun.lu@xxxxxxxxx>
Date: Thu, 19 Mar 2009 22:20:52 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: xen-devel组 <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 19 Mar 2009 07:21:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8FED46E8A9CA574792FC7AACAC38FE7701CB8168A6@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <8FED46E8A9CA574792FC7AACAC38FE7701CB8168A6@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmonBcxnNUdkO56SQePfluoz/7mKQAAcSDg
Thread-topic: question about patch 13252
On Thursday, March 19, 2009 10:08 PM Lu, Guanqun wrote:

> Hi Jan,
> 
> I saw that in patch 13252,
> you added such lines in xen/arch/x86/traps.c
> 
> +#ifdef CONFIG_COMPAT
> +    _set_tssldt_desc(
> +        compat_gdt_table + __TSS(n) - FIRST_RESERVED_GDT_ENTRY,
> +        (unsigned long)addr,
> +        offsetof(struct tss_struct, __cacheline_filler) - 1,
> +        11);
> +#endif
> 
> I have such question about the number 11, 11 is 1010 in binary format,

typo. 1011  ;-)

> which means that the busy flat is set.  Then later, load_TR() is
> called. load_TR() is a wrapper around instruction 'ltr'.  As I
> consult SDM2A, it says that ltr will generate #GP, when the busy flag
> is set. 
> 
> So I'm a little puzzled. Can you explain a little why it's not 9 ?
> Or am I missing something here?
> 
> Thanks.



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