From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Benninger Subject: Re: MULTI_mmu_update, HYPERVISOR_mmu_update and pte entry Date: Thu, 19 May 2011 10:37:48 -0700 Message-ID: References: <4DD2F6B1.5080208@goop.org> <1305706199.4198.0.camel@abulafia.goop.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0044917244==" Return-path: In-Reply-To: <1305706199.4198.0.camel@abulafia.goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: xen-devel@lists.xensource.com, Wei Liu List-Id: xen-devel@lists.xenproject.org --===============0044917244== Content-Type: multipart/alternative; boundary=20cf305638e39bb7a204a3a47868 --20cf305638e39bb7a204a3a47868 Content-Type: text/plain; charset=ISO-8859-1 Interesting, Are you talking about when DomU calls setpte? Chris Benninger University of Victoria, Computer Science cbenning@cs.uvic.ca http://benninger.ca On Wed, May 18, 2011 at 1:09 AM, Jeremy Fitzhardinge wrote: > On Wed, 2011-05-18 at 13:47 +0800, Wei Liu wrote: > > On Wed, May 18, 2011 at 1:25 PM, Christopher Benninger > > wrote: > > > Hi Jeremy, > > > I am definitely doing something weird, but on purpose. I am trying to > > > determine which process specifically owns the pte in question. I have a > domU > > > module which I can ask for information, I just dont know how to get the > ptr > > > provided, into a useful context I can send it. > > > > Most pte updates belong to current process. Maybe you can use CR3 to > > determine to which page table a specified pte belongs. But it may be > > hard to determine the actual task_struct IMHO. > > If you can record it at the time of the setpte, its easy: "current" is > always the current task. > > J > > > --20cf305638e39bb7a204a3a47868 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Interesting,

Are you talking about when DomU calls setpt= e?=A0

Chris Benninger

University of Victoria, Computer Scie= nce
cbenning@cs.uvic.c= a
http://benninge= r.ca



On Wed, May 18, 2011 at 1:09 AM, Jeremy = Fitzhardinge <jerem= y@goop.org> wrote:
On Wed, 2011-05-18 at 13:47 +0800, Wei Liu wrote:
> On Wed, May 18, 2011 at 1:25 PM, Christopher Benninger
> <chrisbenninger@gmail.c= om> wrote:
> > Hi Jeremy,
> > I am definitely doing something weird, but on purpose. I am tryin= g to
> > determine which process specifically owns the pte in question. I = have a domU
> > module which I can ask for information, I just dont know how to g= et the ptr
> > provided, into a useful context I can send it.
>
> Most pte updates belong to current process. Maybe you can use CR3 to > determine to which page table a specified pte belongs. But it may be > hard to determine the actual task_struct IMHO.

If you can record it at the time of the setpte, its easy: "curre= nt" is
always the current task.

=A0 =A0 =A0 =A0J



--20cf305638e39bb7a204a3a47868-- --===============0044917244== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0044917244==--