From: "Emre Can Sezer" Subject: Re: Reading HVM guest memory Date: Sun, 19 Oct 2008 14:23:26 -0400 (EDT) Message-ID: <1307.152.14.92.134.1224440606.squirrel@webmail.ncsu.edu> References: <48F8F973.2020407@arlut.utexas.edu> <4314.75.182.68.20.1224353366.squirrel@webmail.ncsu.edu> Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 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: Mike Sun Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >> 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 buff= er >> 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@lists.xensource.com > http://lists.xensource.com/xen-devel >