Displaying 1 result from an estimated 1 matches for "gfn_to_mfn_query".
2011 Sep 23
2
Some problems about xenpaging
...;'s removed from the list by put_page.
my suggestion is to extend the range of the p2m lock to contain the p2m check.
in p2m_mem_paging_nominate() function
@@ -2532,7 +2561,8 @@
mfn_t mfn;
int ret;
- mfn = gfn_to_mfn(d, gfn, &p2mt);
+ p2m_lock(d->arch.p2m);
+ mfn = gfn_to_mfn_query(d, gfn, &p2mt);
/* Check if mfn is valid */
ret = -EINVAL;
@@ -2580,13 +2610,12 @@
goto out;
/* Fix p2m entry */
- p2m_lock(d->arch.p2m);
set_p2m_entry(d, gfn, mfn, 0, p2m_ram_paging_out);
- p2m_unlock(d->arch.p2m);
ret = 0;
out:
+ p2m_...