Skip to contentSkip to conversation

doubt on phys_to_machine_mapping

DISCUSSION Sandesh 2 participants 2 messages Jul 24, 2008 – Jul 25, 2008

lore
Share & tools
lore

Sandesh

author
#0 lore raw

Hi all,
Can some one tell me where phys_to_machine_mapping is being
initialized for a domU having paging mode set to PG_translate. I see that, populate_physmap() after calling __alloc_xen_heap_pages only updates the machine_to_physmap but how is the mfn for the allocated page being updated/set for phys_to_machine_mapping??

I see that phys_to_machine_mapping is a #defined to RO_MPT_VIRT_START which inturn is defined as PML4_ADDR(256).. what is this?? i have completely lose track from here on.

Thanks in advance.

Regards,
Sandesh

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

#1 lore raw
Quoted 2 lines · Sandesh

Can some one tell me where phys_to_machine_mapping is being
initialized for a domU having paging mode set to PG_translate.

Those functions are defined in include/asm-x86/p2m.h and implemented in xen/arch/x86/mm/p2m.c

Tim.

Signature · 3 lines
Tim Deegan <[email protected]>
Principal Software Engineer, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 0DZ, UK.]