]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - mm/memremap.c
memremap: provide a not device managed memremap_pages
authorChristoph Hellwig <hch@lst.de>
Sun, 18 Aug 2019 09:05:57 +0000 (11:05 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 20 Aug 2019 12:41:35 +0000 (09:41 -0300)
commit6869b7b206595ae0e326f59719090351eb8f4f5d
tree6a2f476c8df01f8a915de72c47361f277aa7b6ad
parent6f42193fd86eb5eb518984032c85e9b5582b7625
memremap: provide a not device managed memremap_pages

The kvmppc ultravisor code wants a device private memory pool that is
system wide and not attached to a device.  Instead of faking up one
provide a low-level memremap_pages for it.

Link: https://lore.kernel.org/r/20190818090557.17853-5-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Tested-by: Bharata B Rao <bharata@linux.ibm.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/linux/memremap.h
kernel/memremap.c