[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] mm: guest_remove_page() should not populate or unshare.
# HG changeset patch # User Tim Deegan <tim@xxxxxxx> # Date 1331811651 0 # Node ID da72de35e4a271f1faacd8e712c284ed8cd846a8 # Parent fa7d1e7a5fae658686f041c080b45600be797744 mm: guest_remove_page() should not populate or unshare. guest_remove_page() ought to use get_gfn_query() to look up the current state of the gfn. Otherwise it might populate or unshare the gfn just before dropping it. Signed-off-by: Tim Deegan <tim@xxxxxxx> Committed-by: Tim Deegan <tim@xxxxxxx> --- diff -r fa7d1e7a5fae -r da72de35e4a2 xen/common/memory.c --- a/xen/common/memory.c Thu Mar 15 11:12:44 2012 +0000 +++ b/xen/common/memory.c Thu Mar 15 11:40:51 2012 +0000 @@ -162,7 +162,7 @@ unsigned long mfn; #ifdef CONFIG_X86 - mfn = mfn_x(get_gfn(d, gmfn, &p2mt)); + mfn = mfn_x(get_gfn_query(d, gmfn, &p2mt)); if ( unlikely(p2m_is_paging(p2mt)) ) { guest_physmap_remove_page(d, gmfn, mfn, 0); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |