xen/24950-gnttab-copy-mapped.patch
Charles Arnold 57123e612c - bnc#753165 - xen/scripts/network-bridge wont create bridge
bridge-bonding.diff

- Upstream patches from Jan
  24950-gnttab-copy-mapped.patch
  24970-x86-cpuidle-deny-port-access.patch
  24996-x86-cpuidle-array-overrun.patch
  25041-tapdisk2-create-init-name.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=176
2012-03-21 20:38:02 +00:00

28 lines
904 B
Diff

# HG changeset patch
# User Wei Liu <wei.liu2@citrix.com>
# 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@citrix.com>
--- a/xen/common/grant_table.c
+++ b/xen/common/grant_table.c
@@ -574,6 +574,8 @@ __gnttab_map_grant_ref(
act->start = 0;
act->length = PAGE_SIZE;
act->is_sub_page = 0;
+ act->trans_dom = op->dom;
+ act->trans_gref = op->ref;
}
}