Skip to contentSkip to conversation

if p2m_is_paging then p2m_mem_paging_populate

DISCUSSION Olaf Hering 1 participant 1 message Aug 31, 2010

lore
Share & tools
lore
#0 lore raw

Patrick,

when should p2m_mem_paging_populate() get called?
Currently there is a mix of p2m_is_paged and p2m_is_paging in xen-unstable. The latter would mean that any of the paging states will reset the flag to p2m_ram_paging_in_start. Well, unless its p2m_ram_paging_out which is checked in p2m_mem_paging_populate itself.

I could prepare a patch to convert all callers to if p2m_is_paged() then p2m_mem_paging_populate().

My guess is that the busy loop I see in my testing is caused by some race where p2mt is reset to p2m_ram_paging_in_start so that xen itself doesnt make any progress after a while. I'm currently debug that sort of hang.

Olaf