Displaying 2 results from an estimated 2 matches for "p2m_mem_paging_evict".
2012 Feb 09
2
[PATCH] xenpaging:add the dealing of MEM_EVENT_FLAG_EVICT_FAIL request in
...27a5a8d9eae2e110514
xenpaging:add the dealing of MEM_EVENT_FLAG_EVICT_FAIL request in
tools/xenpaging
If a page is nominated but not evicted,then dom0 accesses the page,it
will change the page''s p2mt to be p2m_ram_paging_in,and the req.flags is
MEM_EVENT_FLAG_EVICT_FAIL;so it will fail in p2m_mem_paging_evict() because
of the p2mt;and paging->num_paged_out will not increase in this case;After
the paging process is terminated, the p2mt p2m_ram_paging_in still remains
in p2m table.Once domU accesses the nominated page,it will result in BSOD
or vm''stuck.
The patch adds the dealing of this reque...
2011 Sep 23
2
Some problems about xenpaging
...t;arch.p2m);
/* Get mfn */
- mfn = gfn_to_mfn(d, gfn, &p2mt);
+ mfn = gfn_to_mfn_query(d, gfn, &p2mt);
+
+ ret = -EINVAL;
if ( unlikely(!mfn_valid(mfn)) )
- return -EINVAL;
+ goto out;
if (p2mt != p2m_ram_paging_out)
{
printk("p2m_mem_paging_evict type %d\n", p2mt);
- return -EINVAL;
+ goto out;
}
/* Get the page so it doesn''t get modified under Xen''s feet */
page = mfn_to_page(mfn);
if ( unlikely(!get_page(page, d)) )
- return -EINVAL;
+ goto out;
/* Decr...