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: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Updating built-in GDT
From: Ivan Kelly <ivan@xxxxxxxxxxxxx>
Date: Tue, 24 Jan 2006 11:47:23 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 24 Jan 2006 11:56:57 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <b4f4aafc48348605504d8e1c62e188e7@xxxxxxxxxxxx>
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>
Mail-followup-to: Ivan Kelly <ivan@xxxxxxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
References: <20060123180155.GB6749@xxxxxxxxxxxxx> <b4f4aafc48348605504d8e1c62e188e7@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
On Tue, Jan 24, 2006 at 11:35:05AM +0000, Keir Fraser wrote:
> 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.
I ended up taking this approach, though i've yet to get it to work. With
update_descriptor the first argument is a machine address. Should this be the
machine frame number + offset of entry?
Regards
Ivan

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