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] Is it possible to make hypercall from user application d

To: weiming <zephyr.zhao@xxxxxxxxx>
Subject: Re: [Xen-devel] Is it possible to make hypercall from user application directly?
From: Daniel Stodden <stodden@xxxxxxxxxx>
Date: Tue, 11 Mar 2008 20:50:56 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 11 Mar 2008 12:51:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <add59a3f0803111013n754c2e86v24eefd6b9042acc3@xxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Fakultät für Informatik I10, Technische Universität München
References: <add59a3f0803111013n754c2e86v24eefd6b9042acc3@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, 2008-03-11 at 12:13 -0500, weiming wrote:
> Hi,
> 
> I implemented my own Hypercall in xen.
> 
> Now I wish my application under dom0 could talk to Xen via my
> hypercall.
> Currently, I make a stub in dom0's kernel, which works as a proxy to
> forward the request. So, my application first makes a system call to
> dom0, which then makes hypercall to xen. 
> 
> Is this design necessary? May I call hypercalls from user application
> under dom0 directly?

No, not directly (didn't we have that syscall conversation recently? ;).

But for dom0-only privileged operations there's /proc/xen/privcmd to
rule them all. See e.g. do_xen_hypercall() in tools/libxc/.

regards,
Daniel

-- 
Daniel Stodden
LRR     -      Lehrstuhl für Rechnertechnik und Rechnerorganisation
Institut für Informatik der TU München             D-85748 Garching
http://www.lrr.in.tum.de/~stodden         mailto:stodden@xxxxxxxxxx
PGP Fingerprint: F5A4 1575 4C56 E26A 0B33  3D80 457E 82AE B0D8 735B



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