aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/kernel.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-11-04 11:46:00 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-11-04 11:46:00 +0000
commit8ebbe767aa281355990b834b06d9b287e19e01c3 (patch)
treeea5bd1a1d5899dea0db32f25e89e4cf7bbaac22d /xen/common/kernel.c
parent4cd8a74f6e9e92a813bedba469975cf4b54892e0 (diff)
downloadxen-8ebbe767aa281355990b834b06d9b287e19e01c3.tar.gz
xen-8ebbe767aa281355990b834b06d9b287e19e01c3.tar.bz2
xen-8ebbe767aa281355990b834b06d9b287e19e01c3.zip
x86: allow grant table originating ptes to have their guest available
bits set. In order to allow 2.6.27's get_user_pages_fast() to correctly detect granted pages (so they would be passed to get_user_pages()), it must be possible to tell the grant table code in Xen to set the three available bits in the pte-s it creates. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/common/kernel.c')
-rw-r--r--xen/common/kernel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/common/kernel.c b/xen/common/kernel.c
index f3af91f2ed..9137671817 100644
--- a/xen/common/kernel.c
+++ b/xen/common/kernel.c
@@ -222,7 +222,8 @@ DO(xen_version)(int cmd, XEN_GUEST_HANDLE(void) arg)
#ifdef CONFIG_X86
if ( !is_hvm_vcpu(current) )
fi.submap |= (1U << XENFEAT_mmu_pt_update_preserve_ad) |
- (1U << XENFEAT_highmem_assist);
+ (1U << XENFEAT_highmem_assist) |
+ (1U << XENFEAT_gnttab_map_avail_bits);
#endif
break;
default: