lkml.org 
[lkml]   [2019]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v3 2/3] mm/hmm: allow snapshot of the special zero page
    Date
    On Wed, Oct 23, 2019 at 12:55:14PM -0700, Ralph Campbell wrote:
    > If a device driver like nouveau tries to use hmm_range_fault() to access
    > the special shared zero page in system memory, hmm_range_fault() will
    > return -EFAULT and kill the process.
    > Allow hmm_range_fault() to return success (0) when the CPU pagetable
    > entry points to the special shared zero page.
    > page_to_pfn() and pfn_to_page() are defined on the zero page so just
    > handle it like any other page.
    >
    > Signed-off-by: Ralph Campbell <rcampbell@nvidia.com>
    > Cc: Christoph Hellwig <hch@lst.de>
    > Cc: "Jérôme Glisse" <jglisse@redhat.com>
    > Cc: Jason Gunthorpe <jgg@mellanox.com>
    > ---
    > mm/hmm.c | 10 ++++++++--
    > 1 file changed, 8 insertions(+), 2 deletions(-)

    Applied to hmm.git

    Thanks,
    Jason
    \
     
     \ /
      Last update: 2019-10-29 18:28    [W:4.019 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site