From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: about cr3 register Date: Thu, 2 Apr 2015 10:53:10 +0100 Message-ID: References: <84e75c11446044541a3643b725743b26@inp-toulouse.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <84e75c11446044541a3643b725743b26@inp-toulouse.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: HANNAS YAYA Issa Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, Apr 1, 2015 at 3:37 PM, HANNAS YAYA Issa wrote: > Hi > I am working on memory management in xen. I encounter a problem that I hope > you can help me to solve it. > I modified the struct mmu_update in xen and linux source code. I add two > fields cr3 and addr which respectively contains the current cr3 value and > the current address of the process associated with the pte to be updated. > the struct mmu_update is sent to the hyervisor via hypercall > HYPERVISOR_do_mmu_update. > > In the handler of this hypercall (I mean do_mmu_update) when I read the > value of cr3 via the method read_cr3 it is different from the value I stored > before in the struct mmu_update. I wonder why? Without your code there is absolutely no hope of us figuring out what's going on; and in any case, it's not really our job to debug your code. If you have a specific question about the code that's in-tree, please ask it. This may also be helpful: http://wiki.xenproject.org/wiki/Asking_Developer_Questions (Your last question was closer to being answerable, FWIW.) -George