[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Hypercall privilege check


  • To: "Mark Williamson" <mark.williamson@xxxxxxxxxxxx>
  • From: "Steven Y. Ko" <sko@xxxxxxxxxxx>
  • Date: Thu, 28 Jun 2007 21:52:41 -0500
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 28 Jun 2007 19:50:38 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=bo0Bynsqxs/ptRDdzN+CpvwxZwl/bHghArV/nn8OjcqnzgRmL5BjZ75+Bpd6oywvGHbbd0a5DYqC5anbjATg30s+CIVTssrEGNUCFkJeY0+ahMVMjwaeXnM62JQm0PjWw9k88RgAY1jFcnALY0ah6P9ZtQgmsruSNrKc/yPfVSY=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Are you doing an OS port by any chance?

No I'm just trying to mess around with privilege levels :)

The Minix port was done by a Masters student in Ireland.  I think he started
on Xen 2.0 and I'm not sure he ever moved it over to Xen 3.0 after writing up
his dissertation.

Code is probably about ... somewhere.  Google knows, I expect ;-)

Thanks for your help. I appreciate it.

- Steve


Cheers,
Mark

> - Steve
>
> > Cheers,
> > Mark
> >
> > > - Steve
> > >
> > > On 6/28/07, Mark Williamson <mark.williamson@xxxxxxxxxxxx> wrote:
> > > > > I'm wondering where Xen actually checks whether a hypercall is made
> > > > > from ring 1 or ring 3. Could anyone point me out to the code? Any
> > > > > pointer would be much appreciated. Thanks!
> > > >
> > > > Hypercalls are made from ring 1.  The userspace tools do make
> > > > hypercalls sometimes, but they do it by calling a special kernel
> > > > driver, which then does the actual hypercall.  *actually* what that
> > > > does is to jump into the hypercall transfer page at the right
> > > > location.  This page contains the actual implementation of the
> > > > hypercall (using this indirection allows future versions of Xen to
> > > > supply different implementations of the calls, if appropriate).
> > > >
> > > > Take a look at:
> > > > drivers/xen/privcmd/privcmd.c  in the XenLinux tree.  This is used by
> > > > the dom0 tools to do control plane operations.
> > > >
> > > > Also, take a look at: include/asm-i386/mach-xen/asm/hypercall.h which
> > > > contains implementations of some other hypercalls.
> > > >
> > > > HTH,
> > > > Cheers,
> > > > mark
> > > >
> > > > --
> > > > Dave: Just a question. What use is a unicyle with no seat?  And no
> > > > pedals! Mark: To answer a question with a question: What use is a
> > > > skateboard? Dave: Skateboards have wheels.
> > > > Mark: My wheel has a wheel!
> > >
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@xxxxxxxxxxxxxxxxxxx
> > > http://lists.xensource.com/xen-devel
> >
> > --
> > Dave: Just a question. What use is a unicyle with no seat?  And no
> > pedals! Mark: To answer a question with a question: What use is a
> > skateboard? Dave: Skateboards have wheels.
> > Mark: My wheel has a wheel!



--
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.