Skip to contentSkip to conversation

What does xc_map_foreign_batch() do?

DISCUSSION ADITYA KRISHNAN 1 participant 1 message May 9, 2009

lore
Share & tools
lore
#0 lore raw

Hello,

I am a student at NC state university and I am working on modifying the checkpoint feature of Xen to take incremental checkpoints.

In the xc_domain_save and xc_domain_restore code I observed that Xen uses the xc_map_foreign_batch() function to map the p2m mapping table into the Dom0 directly from a p2m_frame_list, which I suppose is a list of frames containing machine addresses of the various p2m lists for that particular Domain.

Since this function returns only one address, I was confused as to which p2m table's mapped address is it returning among the list of p2m tables pointed to by the p2m_frame_list or is it that there is only a single large p2m mapping table and all that the xc_map_foreign_batch() does is map this machine address contained in the p2m_frame_list along with the entire range of that p2m table ?

Someone kindly enlighten.

Thanks,

Aditya Krishnan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel