lkml.org 
[lkml]   [2021]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 3/7] vfio/pci: Use vfio_device_unmap_mapping_range()
    On Thu, Aug 05, 2021 at 11:07:35AM -0600, Alex Williamson wrote:
    > @@ -1690,7 +1554,7 @@ static int vfio_pci_mmap(struct vfio_device *core_vdev, struct vm_area_struct *v
    >
    > vma->vm_private_data = vdev;
    > vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
    > - vma->vm_pgoff = (pci_resource_start(pdev, index) >> PAGE_SHIFT) + pgoff;
    > + vma->vm_page_prot = pgprot_decrypted(vma->vm_page_prot);

    This addition seems to be an accident. :) Thanks,

    --
    Peter Xu

    \
     
     \ /
      Last update: 2021-08-10 20:49    [W:4.113 / U:0.436 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site