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

[Xen-devel] Reading HVM guest memory

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Reading HVM guest memory
From: "Emre Can Sezer" <ecsezer@xxxxxxxx>
Date: Sat, 18 Oct 2008 14:09:26 -0400 (EDT)
Delivery-date: Sat, 18 Oct 2008 11:09:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
Importance: Normal
In-reply-to: <48F8F973.2020407@xxxxxxxxxxxxxxxx>
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>
References: <48F8F973.2020407@xxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: SquirrelMail/1.4.10a
Hi,

I'm trying to pass some information from an HVM guest to the hypervisor. 
The guest kernel allocates a buffer and writes all the necessary stuff in
it.  It then makes a hypercall (hvm_op) to notify Xen of the buffer
location.

My problem is that I can't read the buffer from the hypervisor.  The
pointer is being passed correctly.  I tried copying it to a local buffer
via copy_from_user() function but this function fails.  I noticed that
access_ok() function fails for this pointer, so I tried to use the
__copy_from_user_ll() function.  All to no avail.

How can I read this guest buffer which resides in guest kernel space?

The information I'm trying to pass is simple events like a module being
loaded or a new page allocation.  There are 4 types of events alltogether
so I could make individual hypercalls for each.  But I'm curious why I
cann't read the guest memory.  Also if there is an easier way of passing
information from an HVM guest to Xen, I'd love to hear it.

Thanks in advance.

John

PS. I'm using 64-bit guest.

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

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