From: Dan Magenheimer Subject: RE: Xen help Date: Mon, 10 Aug 2009 08:50:04 -0700 (PDT) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 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: Derek Riley , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi Derek -- I think perhaps the problem is that your goal (at least as I interpret it) is not possible. The Xen hypervisor doesn't have any way of writing to a file. And as far as I know, there is no way to make a hypercall from "user space", only from the kernel of a paravirtualized OS. It *is* possible for an xm command executed as root to provoke (via ioctl??) a hypercall from dom0 OS kernel to pass a buffer, for Xen to fill in information to that buffer, and for an OS kernel to put that buffer someplace that could be read by a user process. But that doesn't sound like it would meet your goal. If this is close enough, a key file is tools/python/xen/lowlevel/xc/xc.c and a recent patch that plumbs an xm command from the linux command line through to xc.c is at http://xenbits.xensource.com/staging/xen-unstable.hg?rev/03063e309356 I'm afraid I can't help much with all the python code though. I've mostly mimicked code written by others and debugged it until it worked. Hope that points you in the right direction! -----Original Message----- From: Derek Riley [mailto:derek.riley@isis.vanderbilt.edu] Sent: Monday, August 10, 2009 7:49 AM To: xen-devel@lists.xensource.com Subject: [Xen-devel] Xen help Hello- I have posted to this list several times re-iterating the same problem (try= ing to figure out an API mechanism between Xen and the user space), and I h= aven't heard much from you guys. =20 Could someone at least point me to the file(s) that handle the API communic= ation between Xen and XM? Ideally, I would like to find a way to read/writ= e to a file/device from within the scheduler, but no one has said anything = useful about how to accomplish this. =20 I apologize for the repeated attempts to get the same information, but I kn= ow there are people on this list who could help me, or at least point me in= the right direction. Any help is appreciated. Thanks --Derek