|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.2-testing] Extra check in grant table code for mapping of shared frame
# HG changeset patch
# User Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>
# Date 1348068670 -7200
# Node ID 1a4ace3604420ab001922ea9571c0654f431e530
# Parent 244bf44cb7a6f96fab18bfe266bb1af6df2e406f
Extra check in grant table code for mapping of shared frame
Signed-off-by: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>
xen-unstable changeset: 25917:5ba70e030b47
xen-unstable date: Mon Sep 17 16:51:57 UTC 2012
---
diff -r 244bf44cb7a6 -r 1a4ace360442 xen/common/grant_table.c
--- a/xen/common/grant_table.c Wed Sep 19 17:27:38 2012 +0200
+++ b/xen/common/grant_table.c Wed Sep 19 17:31:10 2012 +0200
@@ -673,9 +673,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 |