From: Keir Fraser Subject: Re: Updating built-in GDT Date: Tue, 24 Jan 2006 16:15:05 +0000 Message-ID: <16120ba2ec1416fd090c29ce170fefab@cl.cam.ac.uk> References: <20060123180155.GB6749@ivankelly.net> <20060124144840.GF6847@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: <20060124144840.GF6847@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 24 Jan 2006, at 14:48, Ivan Kelly 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. > does set_gdt add the default descriptors(at 819, 820, 821 etc) or will > i have > to insert these into my new gdt manually? The default selectors are 0xe000 and above. They are always available, even if you install your own GDT. To achieve this trick, guest GDTs are limited to 14 pages (7168 entries) rather than 16 pages (8192 entries). -- Keir