All of lore.kernel.org
 help / color / mirror / Atom feed
* question about patch 13252
@ 2009-03-19 14:07 Lu, Guanqun
  2009-03-19 14:20 ` Lu, Guanqun
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Lu, Guanqun @ 2009-03-19 14:07 UTC (permalink / raw)
  To: jbeulich@novell.com; +Cc: xen-devel组

[-- Attachment #1: Type: text/plain, Size: 728 bytes --]

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,
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

[-- Attachment #2: 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] 10+ messages in thread

end of thread, other threads:[~2009-03-20  5:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-19 14:07 question about patch 13252 Lu, Guanqun
2009-03-19 14:20 ` Lu, Guanqun
2009-03-19 14:22 ` Keir Fraser
2009-03-19 14:34   ` Lu, Guanqun
2009-03-19 14:49     ` Keir Fraser
2009-03-19 14:58       ` Jan Beulich
2009-03-19 17:06         ` Keir Fraser
2009-03-20  5:34           ` Lu, Guanqun
2009-03-20  5:35           ` Lu, Guanqun
2009-03-19 14:53 ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.