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] Hypercalls from user-space

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] Hypercalls from user-space
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Fri, 24 Sep 2010 21:30:20 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Srujan D. Kotikela" <ksrujandas@xxxxxxxxx>
Delivery-date: Fri, 24 Sep 2010 13:31:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C9CF8B2.1010103@xxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Citrix Systems, Inc.
References: <AANLkTimQwuof3KVbo6QuJwYNCD=Yom1pmFnjj4+HfWe0@xxxxxxxxxxxxxx> <4C9CF8B2.1010103@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 2010-09-24 at 20:14 +0100, Jeremy Fitzhardinge wrote: 
> On 09/24/2010 11:38 AM, Srujan D. Kotikela wrote:
> > Hi,
> >
> > Can anyone tell me how to invoke hypercalls from user space? Or any
> > pointers for the same.
> >
> > It's urgent, please help.
> >
> 
> You can't directly invoke hypercalls from userspace.   In a privileged
> domain you can use ioctls on /proc/xen/privcmd.

And libxenctrl (see tools/libxc in the source) includes C wrappers for
many of them, as well as the necessary low level helpers to invoke the
ioctls etc.

Ian.


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

<Prev in Thread] Current Thread [Next in Thread>