aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/grant_table.c
diff options
context:
space:
mode:
authorWei Liu <wei.liu2@citrix.com>2012-03-01 16:37:18 +0000
committerWei Liu <wei.liu2@citrix.com>2012-03-01 16:37:18 +0000
commite09b7cbbdc5675d5237be5cd46fbcc55ffa64a4d (patch)
treec172fb9fbfb0db3763aaf8641ce8d9260afa1d00 /xen/common/grant_table.c
parent39eb9768411ef1ff0905297c1cc95fde8d0ee49c (diff)
downloadxen-e09b7cbbdc5675d5237be5cd46fbcc55ffa64a4d.tar.gz
xen-e09b7cbbdc5675d5237be5cd46fbcc55ffa64a4d.tar.bz2
xen-e09b7cbbdc5675d5237be5cd46fbcc55ffa64a4d.zip
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@citrix.com> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/grant_table.c')
-rw-r--r--xen/common/grant_table.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c
index 4d637833d6..28a256197e 100644
--- a/xen/common/grant_table.c
+++ b/xen/common/grant_table.c
@@ -585,6 +585,8 @@ __gnttab_map_grant_ref(
act->start = 0;
act->length = PAGE_SIZE;
act->is_sub_page = 0;
+ act->trans_domain = rd;
+ act->trans_gref = op->ref;
}
}