Skip to contentSkip to conversation

the cause of invalid entries in physical-to-machine table

DISCUSSION Stephan Creutz 1 participant 2 messages Jan 25, 2007 – Feb 6, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I am currently trying to understand the details of live-migration by looking at the code xc_linux_save.c in libxc and writing a simple program to make things more clear.

The program memory maps all mfns which are used for the pfn to mfn list, goes through all pfns, resolves each pfn to a mfn and tries to memory map each of them to read its content. One thing I noticed are invalid physical-to-machine list entries (list entries where the resulting mfn equals INVALID_P2M_ENTRY and xc_map_foreign_range failes). I wonder what are the possible causes for invalid entries in the pfn to mfn list. One cause I can think of are pfns that are reserved for Xen itself, but what are the other ones?

BTW: as far as I understand, xc_map_foreign_range should use the size 1 instead of PAGE_SIZE to get the shared info page and live_p2m_frame_list_list because this function expects the size in multiples of the page size not in bytes.

Stephan

#1 lore raw
Quoted 4 lines · On Thu, 25 Jan 2007 18:53:10 +0100 Stephan Creutz…

I am currently trying to understand the details of live-migration by looking at the code xc_linux_save.c in libxc and writing a simple program to make things more clear.

Quoted 8 lines

The program memory maps all mfns which are used for the pfn to mfn list, goes through all pfns, resolves each pfn to a mfn and tries to memory map each of them to read its content. One thing I noticed are invalid physical-to-machine list entries (list entries where the resulting mfn equals INVALID_P2M_ENTRY and xc_map_foreign_range failes). I wonder what are the possible causes for invalid entries in the pfn to mfn list. One cause I can think of are pfns that are reserved for Xen itself, but what are the other ones?

I used Xen 3.0.3-1 (which forgot to mention in the original mail). After Upgrading to version 3.0.4-1 the invalid entries disappeared.

Stephan

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