Displaying 1 result from an estimated 1 matches for "test_page_hot".
2011 Nov 01
2
xenpaing: one way to avoid paging out the page, when the corresponding mfn is in use.
...aging_nominate(struct domain *d, unsigned long gfn)
{
mfn = gfn_to_mfn_noreference(d, gfn, &p2mt); -----> avoid saving timestamp and access tag
if ( !mfn_valid(mfn) )
goto out;
clear_access_tag(); ----------> clear the access tag of this page
if (test_page_hot())
goto out; ------> if the page is accessed recently, go to out
........
set_p2m_entry(d, gfn, mfn, 0, p2m_ram_paging_out);
if ( test_access_tag ( mfn ) )
goto out; --------> if access tag is set, the gfn_to_mfn must have happened above, abort anyway....