Skip to contentSkip to conversation

missing set_gpfn_from_mfn in XENMEM_add_to_physmap/XENMAPSPACE_gmfn for xenpaging

DISCUSSION Olaf Hering 1 participant 1 message Oct 13, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

while starting xenpaging early from the python code, I ran into the ASSERT in guest_physmap_remove_page -> p2m_remove_page, called from arch_memory_op with op==XENMEM_add_to_physmap, xatp.space==XENMAPSPACE_gmfn. Its called from the hvmloader code.

For some reason the mfn passed to get_gpfn_from_mfn() is different than the one returned from ->get_entry() in p2m_remove_page().

Any idea where the missing set_gpfn_from_mfn has to be added for a just paged-in page?

Olaf