From: Keir Fraser Subject: Re: Updating built-in GDT Date: Tue, 24 Jan 2006 11:35:05 +0000 Message-ID: References: <20060123180155.GB6749@ivankelly.net> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060123180155.GB6749@ivankelly.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ivan Kelly Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 23 Jan 2006, at 18:02, Ivan Kelly wrote: > When porting a new OS to xen (using 2.0.7) is it possible to use the > builtin > GDT for all your purposes, or do you have to create a new one if you > want to > work with anything but the descriptors that are already in the xen > provided > one. > If you can use the builtin one, how do you access the GDT? Is it in > the 64M > reserved address space? You can't update the built-in GDT. Instead, create your own and pass the list of MFNs that comprise your GDT to the set_gdt() hypercall. You must ensure you have only read-only mappings of those MFNs before passing them to that hypercall! If you wish to update your GDT, use the update_descriptor() hypercall. We could emulate write accesses to the guest GDT, but that hasn't so far been implemented. -- Keir