DomU memory update procedures ?
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.
Hi,
Quoted 3 lines · lmingcsce
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.
Quoted 2 lines
In my current understanding, I find that there is a hypercal
do_mmu_updatein 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.
Quoted 13 lines
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
[email protected]
http://lists.xensource.com/xen-devel