[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-4.1-testing] Grant table: fix a bug when grant copying a previous grant mapped page.



# HG changeset patch
# User Wei Liu <wei.liu2@xxxxxxxxxx>
# Date 1331109561 0
# Node ID e03aa3794cff3c5f6a5d87d9a282daf7baa1ddc7
# Parent  8f927378135a31fe363edd65df236a58cf2757ea
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>
xen-unstable changeset:   24950:9ef985f5e6a5
xen-unstable date:        Thu Mar 01 16:37:18 2012 +0000
---


diff -r 8f927378135a -r e03aa3794cff xen/common/grant_table.c
--- a/xen/common/grant_table.c  Wed Mar 07 08:35:58 2012 +0000
+++ b/xen/common/grant_table.c  Wed Mar 07 08:39:21 2012 +0000
@@ -574,6 +574,8 @@
             act->start = 0;
             act->length = PAGE_SIZE;
             act->is_sub_page = 0;
+            act->trans_dom = rd->domain_id;
+            act->trans_gref = op->ref;
         }
     }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.