From: Daniel Stodden Subject: Re: Is it possible to make hypercall from user application directly? Date: Tue, 11 Mar 2008 20:50:56 +0100 Message-ID: <1205265056.6230.6.camel@thinkpad.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: weiming Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On Tue, 2008-03-11 at 12:13 -0500, weiming wrote: > Hi, >=20 > I implemented my own Hypercall in xen. >=20 > 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.=20 >=20 > 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 --=20 Daniel Stodden LRR - Lehrstuhl f=C3=BCr Rechnertechnik und Rechnerorganisation Institut f=C3=BCr Informatik der TU M=C3=BCnchen D-85748 Garc= hing http://www.lrr.in.tum.de/~stodden mailto:stodden@cs.tum.edu PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B