From: Keir Fraser Subject: Re: Privilege levels in xenolinux Date: Tue, 8 Nov 2005 10:44:32 +0000 Message-ID: References: <32907.130.207.114.76.1131427390.squirrel@webmail.cc.gatech.edu> 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: <32907.130.207.114.76.1131427390.squirrel@webmail.cc.gatech.edu> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Purav Saraiya Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 8 Nov 2005, at 05:23, Purav Saraiya wrote: > The following assembly code is used to set the Descriptors in > xenolinux. > Theoretically, for xenolinux we have Descriptor privilege level(DPL) = > 1 > for all its descriptors. But from the instruction, > > "movb %4,5(%2)\n\t" (with the parameter, type =0x82 and 0x89) > it seems that the DPL is set to 0. > > How is this possible. Dont we have xenolinux running at privilege > level 1? > Am I going wrong somewhere? That's dead code in Xen Linux. We set up LDTs via an explicit hypercall, not via LLDT. -- Keir