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

xen-devel

[Top] [All Lists]

[Xen-devel] win4lin on Xen

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] win4lin on Xen
From: "Tom Cranbrook" <tcranbrook@xxxxxxxxxxxxx>
Date: 2004年10月07日 17:28:59 -0400
Delivery-date: 2004年10月07日 22:31:55 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Reply-to: tcranbrook@xxxxxxxxxxxxx
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
I think I'v tracked pretty much every thing down and that I can merge these
patches. Will take some hand work, but .. so what.
I do have a questions about one thing in the include/asm--i386/segment.h
file. This changes the layout of the per-CPU GDT rather substantually. Is
this likely to poison Xen?
below in the relevant patch:
diff -auP linux-2.6.8.1/include/asm-i386/segment.h
linux-2.6.8.1-win4lin/include/asm-i386/segment.h
--- linux-2.6.8.1/include/asm-i386/segment.h 2004年08月14日 06:55:09.000000000
-0400
+++ linux-2.6.8.1-win4lin/include/asm-i386/segment.h 2004年08月22日
21:09:21.000000000 -0400
@@ -1,6 +1,93 @@
 #ifndef _ASM_SEGMENT_H
 #define _ASM_SEGMENT_H
+#ifdef CONFIG_MKI
+
+/*
+ * The layout of the per-CPU GDT under Linux with CONFIG_MKI:
+ *
+ * 0 - 0x000 - null
+ * 1 - 0x008 - reserved
+ * 2 - 0x010 - reserved
+ * 3 - 0x018 - reserved
+ *
+ * 4 - 0x020 - unused <==== new cacheline
+ * 5 - 0x028 - unused
+ *
+ * ------- start of TLS (Thread-Local Storage) segments:
+ *
+ * 6 - 0x030 - TLS segment #1 [ glibc's TLS segment ]
+ * 7 - 0x038 - TLS segment #2 [ Wine's %fs Win32 segment ]
+ * 8 - 0x040 - TLS segment #3
+ * 9 - 0x048 - reserved
+ * 10 - 0x050 - reserved
+ * 11 - 0x058 - reserved
+ *
+ * 12 - 0x060 
+ * | - reserved for MKI use
+ * V
+ * 479 - 0xef8
+ *
+ * ------- start of kernel segments:
+ * 484 - 0xf20 - kernel code segment <==== new cacheline
+ * 485 - 0xf28 - kernel data segment
+ * 486 - 0xf30 - default user CS
+ * 487 - 0xf38 - default user DS
+ * 488 - 0xf40 - TSS
+ * 489 - 0xf48 - LDT
+ * 490 - 0xf50 - PNPBIOS support (16->32 gate)
+ * 491 - 0xf58 - PNPBIOS support
+ * 492 - 0xf60 - PNPBIOS support
+ * 493 - 0xf68 - PNPBIOS support
+ * 494 - 0xf78 - PNPBIOS support
+ * 495 - 0xf78 - APM BIOS support
+ * 496 - 0xf80 - APM BIOS support
+ * 497 - 0xf88 - APM BIOS support
+ * 498 - 0xf90 - unused
+ * 497 - 0xf98 - unused
+ * 498 - 0xfa0 - unused
+ * 499 - 0xfa8 - unused
+ * 500 - 0xfb0 - unused
+ * 501 - 0xfb8 - TSS for double fault handler
+ * 502 - 0xfc0 - unused
+ * | - unused
+ * V - unused
+ * 511 - 0xff8 - unused
+ */
+#define GDT_ENTRY_TLS_ENTRIES 3
+#define GDT_ENTRY_TLS_MIN 6
+#define GDT_ENTRY_TLS_MAX (GDT_ENTRY_TLS_MIN + GDT_ENTRY_TLS_ENTRIES - 1)
+
+#define TLS_SIZE (GDT_ENTRY_TLS_ENTRIES * 8)
+
+#define GDT_ENTRY_DEFAULT_USER_CS 486
+#define __USER_CS (GDT_ENTRY_DEFAULT_USER_CS * 8 + 3)
+
+#define GDT_ENTRY_DEFAULT_USER_DS 487
+#define __USER_DS (GDT_ENTRY_DEFAULT_USER_DS * 8 + 3)
+
+#define GDT_ENTRY_KERNEL_BASE 484
+
+#define GDT_ENTRY_KERNEL_CS (GDT_ENTRY_KERNEL_BASE + 0)
+#define __KERNEL_CS (GDT_ENTRY_KERNEL_CS * 8)
+
+#define GDT_ENTRY_KERNEL_DS (GDT_ENTRY_KERNEL_BASE + 1)
+#define __KERNEL_DS (GDT_ENTRY_KERNEL_DS * 8)
+
+#define GDT_ENTRY_TSS (GDT_ENTRY_KERNEL_BASE + 4)
+#define GDT_ENTRY_LDT (GDT_ENTRY_KERNEL_BASE + 5)
+
+#define GDT_ENTRY_PNPBIOS_BASE (GDT_ENTRY_KERNEL_BASE + 6)
+#define GDT_ENTRY_APMBIOS_BASE (GDT_ENTRY_KERNEL_BASE + 11)
+
+#define GDT_ENTRY_DOUBLEFAULT_TSS 501
+
+/*
+ * The GDT has 512 entries
+ */
+#define GDT_ENTRIES 512
+
+#else /* !CONFIG_MKI */
 /*
 * The layout of the per-CPU GDT under Linux:
 *
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] No network-interface to the outside world in domain 0 , Keir Fraser
Next by Date: Re: [Xen-devel] win4lin on Xen , Christian Limpach
Previous by Thread: [Xen-devel] Network Deployment , Mike Brady
Next by Thread: Re: [Xen-devel] win4lin on Xen , Christian Limpach
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /