* DomU memory update procedures ?
@ 2012-01-06 16:41 lmingcsce
2012-01-09 9:57 ` Tim Deegan
0 siblings, 1 reply; 2+ messages in thread
From: lmingcsce @ 2012-01-06 16:41 UTC (permalink / raw)
To: xen-devel
Hi, I have a question about memory update of DomU.
When DomU writes a new value to a memory address, how does hypervisor change
the value in the particular address and change the dirty page bit?
In my current understanding, I find that there is a hypercal do_mmu_update
in the hypervisor changing the content in the memory. However, I want to
know the details about the memory update procedures. Or you can simply tell
me how can I find this procedures.
Thanks for your help.
--
View this message in context: http://xen.1045712.n5.nabble.com/DomU-memory-update-procedures-tp5126037p5126037.html
Sent from the Xen - Dev mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: DomU memory update procedures ?
2012-01-06 16:41 DomU memory update procedures ? lmingcsce
@ 2012-01-09 9:57 ` Tim Deegan
0 siblings, 0 replies; 2+ messages in thread
From: Tim Deegan @ 2012-01-09 9:57 UTC (permalink / raw)
To: lmingcsce; +Cc: xen-devel
Hi,
At 08:41 -0800 on 06 Jan (1325839315), lmingcsce wrote:
> Hi, I have a question about memory update of DomU.
> When DomU writes a new value to a memory address, how does hypervisor change
> the value in the particular address and change the dirty page bit?
The hypervisor is not usually involved in writing the contents of the
memory -- that's just done my the CPU in the normal way. The same is
true for the dirty bit in the PTE.
In some cases the hypervisor has to emulate an instruction. The code
for the emulator is in x86_emulate.c; the pagetable walker is in
arch/x86/mm/guest_walk.c.
> In my current understanding, I find that there is a hypercal do_mmu_update
> in the hypervisor changing the content in the memory.
do_mmu_update() is used by PV domU to change its pagetables; it's not
involved in normal memory writes.
Cheers,
Tim.
> However, I want to
> know the details about the memory update procedures. Or you can simply tell
> me how can I find this procedures.
> Thanks for your help.
>
> --
> View this message in context: http://xen.1045712.n5.nabble.com/DomU-memory-update-procedures-tp5126037p5126037.html
> Sent from the Xen - Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-09 9:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-06 16:41 DomU memory update procedures ? lmingcsce
2012-01-09 9:57 ` Tim Deegan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).