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/
Home Products Support Community News


RE: [Xen-devel] question about patch 13252

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, "jbeulich@xxxxxxxxxx" <jbeulich@xxxxxxxxxx>
Subject: RE: [Xen-devel] question about patch 13252
From: "Lu, Guanqun" <guanqun.lu@xxxxxxxxx>
Date: Thu, 19 Mar 2009 22:34:46 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: xen-devel组 <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 19 Mar 2009 07:35:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C5E805AF.48A3%keir.fraser@xxxxxxxxxxxxx>
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> <C5E805AF.48A3%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmonBcxnNUdkO56SQePfluoz/7mKQAAhEIOAAAtsIA=
Thread-topic: [Xen-devel] question about patch 13252
On Thursday, March 19, 2009 10:23 PM Keir Fraser wrote:

> On 19/03/2009 14:07, "Lu, Guanqun" <guanqun.lu@xxxxxxxxx> wrote:
>> I have such question about the number 11, 11 is 1010 in binary
>> format, 
> Try again. :D

Typo, it seems my fingers have their own thoughts...

>> 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?
> We only execute LTR once at start of day for each CPU. This is done
> while running on the non-compat gdt_table. When we switch to
> compat_gdt_table we do not do any LTR switch. I suppose Jan sets the
> busy bit to match what will be in the non-compat table after we have
> executed our one-off LTR. 
>  -- Keir

Thanks for your reply.

It makes a little sense...
But the problem is that when we do S3,
we execute load_TR() again (in file arch/x86/acpi/suspend.c),
and this causes the bug.

Do we need to go back to non-compat gdt_table when it resumes, and 
switch to compat_gdt_table again?

Xen-devel mailing list