Re: [PATCH v5 3/7] vfio/nvgrace-gpu: Add support for huge pfnmap

Ankit Agrawal
2025-11-24T15:41:00Z

>>       scoped_guard(rwsem_read, &nvdev->core_device.memory_lock)
>> -             ret = vmf_insert_pfn(vmf->vma, vmf->address, pfn);
>> +             ret = vfio_pci_vmf_insert_pfn(vmf, pfn, order);
>>
>>       return ret;
>>  }
>
> It may be worth considering replicating the dev_dbg from
> vfio_pci_mmap_huge_fault(), it's been very useful in validating that
> we're getting the huge PFNMAPs we expect.  Thanks,

Sure, will add the log message. Thanks!

>
> Alex