All of lore.kernel.org
 help / color / mirror / Atom feed
* about cr3 register
@ 2015-04-01 14:37 HANNAS YAYA Issa
  2015-04-02  9:53 ` George Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: HANNAS YAYA Issa @ 2015-04-01 14:37 UTC (permalink / raw)
  To: xen-devel

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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: about cr3 register
  2015-04-01 14:37 about cr3 register HANNAS YAYA Issa
@ 2015-04-02  9:53 ` George Dunlap
  0 siblings, 0 replies; 3+ messages in thread
From: George Dunlap @ 2015-04-02  9:53 UTC (permalink / raw)
  To: HANNAS YAYA Issa; +Cc: xen-devel

On Wed, Apr 1, 2015 at 3:37 PM, HANNAS YAYA Issa
<issa.hannasyaya@enseeiht.fr> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* about cr3 register
@ 2015-04-01 14:31 HANNAS YAYA Issa
  0 siblings, 0 replies; 3+ messages in thread
From: HANNAS YAYA Issa @ 2015-04-01 14:31 UTC (permalink / raw)
  To: xen-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-02  9:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-01 14:37 about cr3 register HANNAS YAYA Issa
2015-04-02  9:53 ` George Dunlap
  -- strict thread matches above, loose matches on Subject: below --
2015-04-01 14:31 HANNAS YAYA Issa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.