[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Extra check in grant table code for mapping of shared frame
# HG changeset patch # User Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx> # Date 1347900717 -3600 # Node ID 5ba70e030b47b37c638054d4f22889f9a6c39b8e # Parent 3bf63fcfacd1945381d34911d10b298e0df3883e Extra check in grant table code for mapping of shared frame Signed-off-by: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx> Committed-by: Keir Fraser <keir@xxxxxxx> --- diff -r 3bf63fcfacd1 -r 5ba70e030b47 xen/common/grant_table.c --- a/xen/common/grant_table.c Mon Sep 17 11:17:05 2012 +0100 +++ b/xen/common/grant_table.c Mon Sep 17 17:51:57 2012 +0100 @@ -708,9 +708,12 @@ __gnttab_map_grant_ref( } else if ( owner == rd || owner == dom_cow ) { - if ( gnttab_host_mapping_get_page_type(op, ld, rd) && - !get_page_type(pg, PGT_writable_page) ) - goto could_not_pin; + if ( gnttab_host_mapping_get_page_type(op, ld, rd) ) + { + if ( (owner == dom_cow) || + !get_page_type(pg, PGT_writable_page) ) + goto could_not_pin; + } nr_gets++; if ( op->flags & GNTMAP_host_map ) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |