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

Re: [Xen-devel] Updating built-in GDT

To: Ivan Kelly <ivan@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Updating built-in GDT
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Tue, 24 Jan 2006 11:35:05 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 24 Jan 2006 11:37:34 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20060123180155.GB6749@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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20060123180155.GB6749@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

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


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