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] Reading HVM guest memory

To: "Mike Sun" <msun@xxxxxxxxxx>
Subject: Re: [Xen-devel] Reading HVM guest memory
From: "Emre Can Sezer" <ecsezer@xxxxxxxx>
Date: Sun, 19 Oct 2008 14:23:26 -0400 (EDT)
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 19 Oct 2008 11:23:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
Importance: Normal
In-reply-to: <e4e579070810181913h715c5da3m455d5cb9eeb9553@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/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> <4314.75.182.68.20.1224353366.squirrel@xxxxxxxxxxxxxxxx> <e4e579070810181913h715c5da3m455d5cb9eeb9553@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: SquirrelMail/1.4.10a
>> 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.
>
> I think you want to use copy_from_user_hvm()
>
> Mike

Worked like a charm.  Thank you very much!

John

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


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

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