Re: Nick's core remove PageReserved broke vmware...

From: Nick Piggin (nickpiggin_at_yahoo.com.au)
Date: 11/02/05

  • Next message: Richard Purdie: "Re: best way to handle LEDs"
    Date:	Wed, 02 Nov 2005 11:34:02 +1100
    To: Petr Vandrovec <vandrove@vc.cvut.cz>
    
    

    Petr Vandrovec wrote:
    > Hello Nick,
    > what's the reason behind disallowing get_user_pages() on VM_RESERVED
    > regions? vmmon uses VM_RESERVED on its 'vma' as otherwise some kernels
    > used by SUSE complained loudly about mismatch between PageReserved() and
    > VM_RESERVED flags.
    >

    Hi Petr,

    The reason is that VM_RESERVED indicates that the core vm is not allowed
    to touch any 'struct page' through this mapping, which get_user_pages
    would do.

    > I'll remove it from vmmon for >= 2.6.14 kernels as that bogus test
    > never made to Linux kernel, but I cannot find any reason why
    > get_user_pages() should not work on VM_RESERVED (or VM_IO for that
    > matter) user pages. Can you show me reasoning behind that decision ?

    The reasoning behind the decision was so VM_RESERVED is usable for a
    complete replacement to PageReserved. For example mappings through
    /dev/mem should not touch the page count.

    You may be able to go a step further and clear PageReserved from your
    pages as well, and thus have a working driver without special casing
    for both kernels.

    Thanks,
    Nick

    -- 
    SUSE Labs, Novell Inc.
    Send instant messages to your online friends http://au.messenger.yahoo.com 
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Richard Purdie: "Re: best way to handle LEDs"

    Relevant Pages

    • Re: [PATCH] Checkpoint lists split
      ... > submitted buffers) is not in -mm kernels. ... Is there any reason why you've ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Checkpoint lists split
      ... > submitted buffers) is not in -mm kernels. ... Is there any reason why you've ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Adds support for TEA5767 chipset on V4L
      ... > some reason, as you pointed, it had failed for this code... ... is anyone testing the v4l cvs on 2.4 kernels? ... cvs as well and simply drop the 2.4 code ... ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: RFD: Kernel release numbering
      ... and the only reason it works is that 2.4.x is a totally ... > things out, but it doesn't matter how many -rc kernels I'd do, it just ... It seems to me that the problem is not the numbering scheme. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Weak symbols in modules and versioned symbols
      ... On Thu, 2004-10-14 at 00:58, Petr Vandrovec wrote: ... > is there some reason why to not apply patch below? ... Without patch below ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)