linux/drivers/vfio/pci/hisilicon
Yishai Hadas cb8285b89f vfio/hisi: Use GFP_KERNEL_ACCOUNT for userspace persistent allocations
Use GFP_KERNEL_ACCOUNT for userspace persistent allocations.

The GFP_KERNEL_ACCOUNT option lets the memory allocator know that this
is untrusted allocation triggered from userspace and should be a subject
of kmem accounting, and as such it is controlled by the cgroup
mechanism.

Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20230108154427.32609-5-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2023-01-23 11:26:30 -07:00
..
hisi_acc_vfio_pci.c vfio/hisi: Use GFP_KERNEL_ACCOUNT for userspace persistent allocations 2023-01-23 11:26:30 -07:00
hisi_acc_vfio_pci.h hisi_acc_vfio_pci: Move the dev compatibility tests for early check 2022-12-06 12:37:11 -07:00
Kconfig hisi_acc_vfio_pci: Add support for VFIO live migration 2022-03-15 11:41:32 -06:00
Makefile