From: Christian Limpach Subject: Re: do_set_gdt Date: Sat, 28 Feb 2004 22:10:26 +0100 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <000d01c3fe3f$4a9a5950$070414ac@pin> References: <20040228110550.C6526@demos.bsdclusters.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Return-path: Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Kip Macy , Keir Fraser Cc: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org > Yes, but you have to pass in at least a page which == 512 entries. So if > I'm only using the first 8 entries, there is no reason Xen can't use > 256-296. Passing in LAST_RESERVED_ENTRY + 1, seems a little contrived > when it is only the first 8 that I care about. I'd find it disturbing if we passed in 8 and Xen would then change entries 9-LAST_RESERVED_ENTRY[*]. Right now Xen only changes entries within the memory you offered it for storing the GDT, so you are implicitly aware that memory for at least LAST_RESERVED_ENTRY entries will be used for the GDT table... [*] Xen would have to zero/invalidate entries 9-FIRST_RESERVED_ENTRY > A better approach would > be to insist that entries 256-296 are set to 0 in the case where the > user sets nentries >= FIRST_RESERVED_ENTRY. What would that accomplish? Besides that it wouldn't work: we copy Xen's entries into the table which would make the table fail the 0-check the next time you call set_gdt... christian ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click