Re: [Xen-devel] [PATCH] xen: set vma flag VM_PFNMAP in the privcmd mmap file_op

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Konrad Rzeszutek Wilk
Date: Thursday, November 11, 2010 - 9:40 am

On Thu, Nov 11, 2010 at 03:55:49PM +0000, Stefano Stabellini wrote:

So vma_wants_writenotify sets the invalid flags on vma->vm_flags?

By whom? vma_wants_writenotify looks to just return 0 or 1

Ah, depending on that return value it sets vma->vm_page_prot.
That looks odd, so if this:

1215         if (vma_wants_writenotify(vma))
1216                 vma->vm_page_prot = vm_get_page_prot(vm_flags & ~VM_SHARED);
1217 

does not set the vma->vm_page_prot we never set the vm_page_prot?

.. and it looks to not set that value earlier on either.

So VM_PFNMAP inhibits the mmap code from setting the vm_page_prot.
Is that what we want, not have vma->vm_page_prot set anything? Why?

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] xen: set vma flag VM_PFNMAP in the privcmd mmap fi ..., Stefano Stabellini, (Thu Nov 11, 8:55 am)
Re: [Xen-devel] [PATCH] xen: set vma flag VM_PFNMAP in the ..., Konrad Rzeszutek Wilk, (Thu Nov 11, 9:40 am)
Re: [Xen-devel] [PATCH] xen: set vma flag VM_PFNMAP in the ..., Jeremy Fitzhardinge, (Thu Nov 11, 10:21 am)
Re: [Xen-devel] [PATCH] xen: set vma flag VM_PFNMAP in the ..., Stefano Stabellini, (Thu Nov 11, 10:42 am)