aboutsummaryrefslogtreecommitdiff
path: root/kmod
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2020-02-24 07:17:51 -0500
committerThanos <tmakatos@gmail.com>2020-02-25 16:21:59 +0000
commit480945ea9c7593dccd9c5dbf5192622caf0fb048 (patch)
treee0df62b6bc95f7c49a8fb053ce1d563d6d84e9fe /kmod
parentdcb042223bfeaf6459fe658c1e61827b68991662 (diff)
downloadlibvfio-user-480945ea9c7593dccd9c5dbf5192622caf0fb048.zip
libvfio-user-480945ea9c7593dccd9c5dbf5192622caf0fb048.tar.gz
libvfio-user-480945ea9c7593dccd9c5dbf5192622caf0fb048.tar.bz2
use better flags for allocating device memory
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'kmod')
-rw-r--r--kmod/muser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmod/muser.c b/kmod/muser.c
index 2520a49..5586a25 100644
--- a/kmod/muser.c
+++ b/kmod/muser.c
@@ -472,7 +472,7 @@ static struct page *mudev_page_alloc(struct muser_dev *mudev,
struct page *pg;
int ret;
- pg = alloc_page(GFP_KERNEL);
+ pg = alloc_page(GFP_HIGHUSER_MOVABLE | __GFP_ZERO);
if (unlikely(!pg))
return NULL;