xen: set vma flag VM_PFNMAP in the privcmd mmap file_op
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 11 Nov 2010 20:37:43 +0000 (12:37 -0800)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 11 Nov 2010 20:37:43 +0000 (12:37 -0800)
commite060e7af98182494b764d002eba7fa022fe91bdf
tree556b1a8c0d5cddf245c18bf220259691fb8f31d3
parent313e74412105c670ff8900ec8099a3a5df1fa83c
xen: set vma flag VM_PFNMAP in the privcmd mmap file_op

Set VM_PFNMAP in the privcmd mmap file_op, rather than later in
xen_remap_domain_mfn_range when it is too late because
vma_wants_writenotify has already been called and vm_page_prot has
already been modified.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/xen/mmu.c
drivers/xen/xenfs/privcmd.c