[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Grant table: fix a bug when grant copying a previous grant mapped page.
# HG changeset patch # User Wei Liu <wei.liu2@xxxxxxxxxx> # Date 1330619838 0 # Node ID 9ef985f5e6a57d2e78d27c5f0f64e6a049d8d1ff # Parent ce5ef8a192c1050d85580305921d2e5caf220461 Grant table: fix a bug when grant copying a previous grant mapped page. In grant table version 2, when we create a non-transitive mapping from DomU to Dom0, we need to set active entry's trans_domain and trans_ref. Otherwise when we grant copy from this previous mapped ref, preemption count will get messed up. See changeset 22994:299ed79acecf for more information. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Committed-by: Keir Fraser <keir@xxxxxxx> --- diff -r ce5ef8a192c1 -r 9ef985f5e6a5 xen/common/grant_table.c --- a/xen/common/grant_table.c Thu Mar 01 16:35:54 2012 +0000 +++ b/xen/common/grant_table.c Thu Mar 01 16:37:18 2012 +0000 @@ -585,6 +585,8 @@ act->start = 0; act->length = PAGE_SIZE; act->is_sub_page = 0; + act->trans_domain = rd; + act->trans_gref = op->ref; } } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |