summaryrefslogtreecommitdiffstats
path: root/lib/of-reconfig-notifier-error-inject.c
diff options
context:
space:
mode:
authorDaniel Jordan <daniel.m.jordan@oracle.com>2021-02-19 11:13:04 -0500
committerAlex Williamson <alex.williamson@redhat.com>2021-02-22 16:30:45 -0700
commit4b6c33b3229678e38a6b0bbd4367d4b91366b523 (patch)
tree82bf0d6ab4a9899bb5293ae4067a675f9e2740f9 /lib/of-reconfig-notifier-error-inject.c
parentbe16c1fd99f41abebc0bf965d5d29cd18c9d271e (diff)
downloadlinux-4b6c33b3229678e38a6b0bbd4367d4b91366b523.tar.bz2
vfio/type1: Prepare for batched pinning with struct vfio_batch
Get ready to pin more pages at once with struct vfio_batch, which represents a batch of pinned pages. The struct has a fallback page pointer to avoid two unlikely scenarios: pointlessly allocating a page if disable_hugepages is enabled or failing the whole pinning operation if the kernel can't allocate memory. vaddr_get_pfn() becomes vaddr_get_pfns() to prepare for handling multiple pages, though for now only one page is stored in the pages array. Signed-off-by: Daniel Jordan <daniel.m.jordan@oracle.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'lib/of-reconfig-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions